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 (
    431086, 431212, 431369, 431402, 430785, 
    430833, 430987, 431300, 430724, 430941, 
    431081, 431377, 431384, 430733, 431181, 
    431229, 431472, 430956, 431253, 431454, 
    430721, 431387, 431225, 431431, 430682, 
    430951, 431438, 431450, 430716, 431382, 
    431446, 431468, 431401, 431412, 431430, 
    430945, 431143, 431215, 431058, 431170, 
    431294, 431312, 431367, 431460, 430731, 
    431036, 431224, 431259, 431276, 431310, 
    430777, 431332, 431396, 431296, 431298, 
    431414, 431014, 431172, 431207, 431471, 
    431479, 431180, 431233, 431442, 431189, 
    431413, 431455, 431213, 431278, 431351, 
    430970, 430996, 431095, 431299, 431483, 
    431496, 431059, 431075, 431391, 431478, 
    431282, 431436, 431265, 431435, 431489, 
    431232, 431477, 430728, 431449, 431214, 
    431448, 430986, 431379, 431331, 431375, 
    431221, 431323, 431492, 431388, 431475
  ) 
  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.00290

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "280.31"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 200,
        "rows_produced_per_join": 200,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "240.31",
          "eval_cost": "40.00",
          "prefix_cost": "280.31",
          "data_read_per_join": "12K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`webmarco`.`cscart_product_prices`.`lower_limit` = 1) and (`webmarco`.`cscart_product_prices`.`product_id` in (431086,431212,431369,431402,430785,430833,430987,431300,430724,430941,431081,431377,431384,430733,431181,431229,431472,430956,431253,431454,430721,431387,431225,431431,430682,430951,431438,431450,430716,431382,431446,431468,431401,431412,431430,430945,431143,431215,431058,431170,431294,431312,431367,431460,430731,431036,431224,431259,431276,431310,430777,431332,431396,431296,431298,431414,431014,431172,431207,431471,431479,431180,431233,431442,431189,431413,431455,431213,431278,431351,430970,430996,431095,431299,431483,431496,431059,431075,431391,431478,431282,431436,431265,431435,431489,431232,431477,430728,431449,431214,431448,430986,431379,431331,431375,431221,431323,431492,431388,431475)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
430682 29.90000000
430716 29.90000000
430721 31.50000000
430724 31.50000000
430728 31.50000000
430731 31.50000000
430733 31.50000000
430777 34.50000000
430785 34.50000000
430833 29.90000000
430941 31.50000000
430945 31.50000000
430951 31.50000000
430956 31.50000000
430970 31.50000000
430986 31.50000000
430987 31.50000000
430996 31.50000000
431014 31.50000000
431036 31.50000000
431058 29.90000000
431059 29.90000000
431075 28.50000000
431081 26.50000000
431086 28.50000000
431095 31.50000000
431143 29.90000000
431170 26.90000000
431172 26.90000000
431180 26.90000000
431181 26.90000000
431189 26.90000000
431207 29.90000000
431212 29.90000000
431213 29.90000000
431214 29.90000000
431215 29.90000000
431221 29.90000000
431224 31.50000000
431225 31.50000000
431229 31.50000000
431232 31.50000000
431233 31.50000000
431253 36.50000000
431259 36.50000000
431265 54.50000000
431276 36.50000000
431278 63.50000000
431282 36.50000000
431294 45.50000000
431296 45.50000000
431298 45.50000000
431299 45.50000000
431300 45.50000000
431310 45.50000000
431312 45.50000000
431323 49.90000000
431331 67.90000000
431332 67.90000000
431351 40.90000000
431367 49.90000000
431369 49.90000000
431375 45.50000000
431377 45.50000000
431379 45.50000000
431382 45.50000000
431384 45.50000000
431387 49.90000000
431388 49.90000000
431391 49.90000000
431396 49.90000000
431401 49.90000000
431402 49.90000000
431412 49.90000000
431413 49.90000000
431414 49.90000000
431430 58.90000000
431431 34.50000000
431435 34.50000000
431436 34.50000000
431438 34.50000000
431442 34.50000000
431446 29.90000000
431448 29.90000000
431449 29.90000000
431450 29.90000000
431454 29.90000000
431455 29.90000000
431460 29.90000000
431468 31.50000000
431471 31.50000000
431472 31.50000000
431475 31.50000000
431477 34.50000000
431478 34.50000000
431479 34.50000000
431483 34.50000000
431489 34.50000000
431492 34.50000000
431496 34.50000000