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 (
    315954, 323397, 325134, 14991, 85379, 
    276603, 279485, 301669, 302229, 304271, 
    311272, 311276, 311278, 315849, 315875, 
    315879, 315890, 315907, 315918, 315940, 
    316080, 316422, 323401, 325341, 254793, 
    292592, 299513, 299552, 301767, 312729, 
    315858, 315917, 315937, 315944, 315949, 
    316051, 316079, 316206, 64640, 293151, 
    296861, 305641, 307613, 311268, 311277, 
    314526, 315213, 315900, 315936, 316049, 
    323291, 324558, 324559, 325117, 325288, 
    133629, 265179, 273025, 298721, 306823, 
    307582, 311271, 315901, 315919, 315950, 
    316050, 323287, 323292, 323649, 200976, 
    300745, 311269, 312681, 312769, 315946, 
    323483, 325116, 301456, 307583, 311270
  ) 
  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.00392

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "72.08"
    },
    "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": 160,
        "rows_produced_per_join": 160,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "56.08",
          "eval_cost": "16.00",
          "prefix_cost": "72.08",
          "data_read_per_join": "5K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`unicomps`.`cscart_product_prices`.`lower_limit` = 1) and (`unicomps`.`cscart_product_prices`.`product_id` in (315954,323397,325134,14991,85379,276603,279485,301669,302229,304271,311272,311276,311278,315849,315875,315879,315890,315907,315918,315940,316080,316422,323401,325341,254793,292592,299513,299552,301767,312729,315858,315917,315937,315944,315949,316051,316079,316206,64640,293151,296861,305641,307613,311268,311277,314526,315213,315900,315936,316049,323291,324558,324559,325117,325288,133629,265179,273025,298721,306823,307582,311271,315901,315919,315950,316050,323287,323292,323649,200976,300745,311269,312681,312769,315946,323483,325116,301456,307583,311270)) and (`unicomps`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
14991 57907.22000000
64640 35686.53000000
85379 10445.85000000
133629 19989.98000000
200976 55084.88000000
254793 8153.88000000
265179 14841.31000000
273025 1789.56000000
276603 3563.80000000
279485 54664.38000000
292592 73752.58000000
293151 9079.96000000
296861 3668.67000000
298721 6464.62000000
299513 24254.45000000
299552 13938.45000000
300745 10967.15000000
301456 44878.57000000
301669 19086.93000000
301767 21001.89000000
302229 7621.75000000
304271 63004.37000000
305641 14903.61000000
306823 120896.16000000
307582 25403.35000000
307583 25968.83000000
307613 28704.23000000
311268 13563.28000000
311269 11868.00000000
311270 18693.95000000
311271 18693.95000000
311272 15731.12000000
311276 28042.96000000
311277 13843.85000000
311278 21396.46000000
312681 11206.88000000
312729 12337.78000000
312769 16369.05000000
314526 150520.19000000
315213 2612.22000000
315849 10759.68000000
315858 5026.97000000
315875 20164.71000000
315879 12218.45000000
315890 18205.11000000
315900 17057.04000000
315901 10614.55000000
315907 18293.51000000
315917 20450.12000000
315918 20450.12000000
315919 16714.11000000
315936 22399.76000000
315937 8848.33000000
315940 11206.88000000
315944 20130.63000000
315946 27744.39000000
315949 27744.39000000
315950 9841.63000000
315954 9411.63000000
316049 458556.63000000
316050 379258.62000000
316051 367686.69000000
316079 6137.32000000
316080 3682.54000000
316206 11455.62000000
316422 17185.91000000
323287 11064.98000000
323291 7059.53000000
323292 254093.79000000
323397 4091.29000000
323401 49503.46000000
323483 3027.94000000
323649 59289.84000000
324558 1646.40000000
324559 2058.37000000
325116 7856.10000000
325117 7856.10000000
325134 10871.48000000
325288 55084.88000000
325341 24431.39000000