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 (
    430938, 431208, 431241, 431335, 431447, 
    430727, 430973, 430985, 431292, 430752, 
    430757, 430942, 431383, 431488, 431502, 
    430978, 431017, 431210, 431236, 431330, 
    430719, 430929, 431227, 431235, 431427, 
    431466, 430630, 430632, 431263, 431482, 
    430943, 431040, 430955, 431415, 431018, 
    431069, 431364, 430693, 430971, 431361, 
    431378, 381708, 431281, 431421, 431302, 
    431385, 431285, 431369, 430717, 430785, 
    431212, 431402, 430725, 430833, 430941, 
    431086, 430736, 430987, 431384, 430724, 
    430733, 431229, 431300, 431377, 431472, 
    430721, 431223, 431253, 431181, 431454, 
    430682, 430951, 430956, 431081, 431431, 
    431225, 431468, 381715, 431387, 431446, 
    430716, 431401, 431438, 431143, 431382, 
    431412, 431430, 431058, 431170, 430945, 
    431215, 431460, 431224, 431294, 431310, 
    431312, 431367, 431450, 339768, 430731
  ) 
  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.00155

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 (430938,431208,431241,431335,431447,430727,430973,430985,431292,430752,430757,430942,431383,431488,431502,430978,431017,431210,431236,431330,430719,430929,431227,431235,431427,431466,430630,430632,431263,431482,430943,431040,430955,431415,431018,431069,431364,430693,430971,431361,431378,381708,431281,431421,431302,431385,431285,431369,430717,430785,431212,431402,430725,430833,430941,431086,430736,430987,431384,430724,430733,431229,431300,431377,431472,430721,431223,431253,431181,431454,430682,430951,430956,431081,431431,431225,431468,381715,431387,431446,430716,431401,431438,431143,431382,431412,431430,431058,431170,430945,431215,431460,431224,431294,431310,431312,431367,431450,339768,430731)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
339768 58.00000000
381708 40.00000000
381715 0.00000000
430630 25.50000000
430632 11.50000000
430682 29.90000000
430693 29.90000000
430716 29.90000000
430717 29.90000000
430719 31.50000000
430721 31.50000000
430724 31.50000000
430725 31.50000000
430727 31.50000000
430731 31.50000000
430733 31.50000000
430736 31.50000000
430752 31.50000000
430757 31.50000000
430785 34.50000000
430833 29.90000000
430929 31.50000000
430938 31.50000000
430941 31.50000000
430942 31.50000000
430943 31.50000000
430945 31.50000000
430951 31.50000000
430955 31.50000000
430956 31.50000000
430971 31.50000000
430973 31.50000000
430978 31.50000000
430985 31.50000000
430987 31.50000000
431017 31.50000000
431018 31.50000000
431040 29.90000000
431058 29.90000000
431069 29.90000000
431081 26.50000000
431086 28.50000000
431143 29.90000000
431170 26.90000000
431181 26.90000000
431208 29.90000000
431210 29.90000000
431212 29.90000000
431215 29.90000000
431223 31.50000000
431224 31.50000000
431225 31.50000000
431227 31.50000000
431229 31.50000000
431235 31.50000000
431236 58.90000000
431241 31.50000000
431253 36.50000000
431263 54.50000000
431281 63.50000000
431285 36.50000000
431292 45.50000000
431294 45.50000000
431300 45.50000000
431302 45.50000000
431310 45.50000000
431312 45.50000000
431330 67.90000000
431335 67.90000000
431361 49.90000000
431364 49.90000000
431367 49.90000000
431369 49.90000000
431377 45.50000000
431378 45.50000000
431382 45.50000000
431383 45.50000000
431384 45.50000000
431385 45.50000000
431387 49.90000000
431401 49.90000000
431402 49.90000000
431412 49.90000000
431415 49.90000000
431421 58.90000000
431427 58.90000000
431430 58.90000000
431431 34.50000000
431438 34.50000000
431446 29.90000000
431447 29.90000000
431450 29.90000000
431454 29.90000000
431460 29.90000000
431466 31.50000000
431468 31.50000000
431472 31.50000000
431482 34.50000000
431488 34.50000000
431502 73.90000000