SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    8633, 8583, 8657, 8408, 8409, 10177, 
    8405, 8406, 9943, 16031, 54977, 8407, 
    8649, 36024, 36027, 26947, 36025, 26577, 
    34036, 30720, 12085, 26543, 26539, 
    31010, 39503, 12086, 40547, 40112, 
    40580, 12088, 40714, 33996, 12087, 
    26542, 36036, 33791, 40836, 40232, 
    40208, 40469, 40616, 26537, 40738, 
    36041, 40374, 40088, 40787, 40679, 
    40516, 40350
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00169

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.01"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 50,
        "rows_produced_per_join": 9,
        "filtered": "20.00",
        "index_condition": "(`cscartdb`.`cscart_product_prices`.`product_id` in (8633,8583,8657,8408,8409,10177,8405,8406,9943,16031,54977,8407,8649,36024,36027,26947,36025,26577,34036,30720,12085,26543,26539,31010,39503,12086,40547,40112,40580,12088,40714,33996,12087,26542,36036,33791,40836,40232,40208,40469,40616,26537,40738,36041,40374,40088,40787,40679,40516,40350))",
        "cost_info": {
          "read_cost": "34.01",
          "eval_cost": "1.00",
          "prefix_cost": "35.01",
          "data_read_per_join": "239"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`cscartdb`.`cscart_product_prices`.`lower_limit` = 1) and (`cscartdb`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
8405 41.99000000
8406 47.99000000
8407 47.99000000
8408 51.99000000
8409 53.99000000
8583 229.99000000
8633 119.00000000
8649 99.00000000
8657 139.00000000
9943 49.99000000
10177 19.99000000
12085 49.99000000
12086 49.99000000
12087 49.99000000
12088 49.99000000
16031 55.00000000
26537 39.99000000
26539 39.99000000
26542 39.99000000
26543 39.99000000
26577 39.99000000
26947 27.99000000
30720 41.00000000
31010 11.99000000
33791 70.00000000
33996 70.00000000
34036 41.00000000
36024 34.00000000
36025 34.00000000
36027 119.00000000
36036 49.00000000
36041 44.00000000
39503 74.99000000
40088 79.99000000
40112 74.99000000
40208 74.99000000
40232 74.99000000
40350 74.99000000
40374 74.99000000
40469 74.99000000
40516 74.99000000
40547 74.99000000
40580 74.99000000
40616 64.99000000
40679 59.99000000
40714 59.99000000
40738 59.99000000
40787 59.99000000
40836 74.99000000
54977 55.00000000