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 (
    4974, 5376, 5397, 4995, 5549, 4992, 4991, 
    5346, 6823, 5472, 5387, 5565, 5309, 
    5386, 5568, 5393, 4988, 5468, 5394, 
    5375, 5396, 4961, 5467, 5370, 5566, 
    4989, 5377, 5369, 5567, 5477, 5374, 
    5550, 5388, 5541, 5564, 5544, 5555, 
    5371, 5392, 5466, 5390, 5372, 5473, 
    6773, 5546, 5391, 5389, 5398, 5469, 
    5543, 5470, 5547, 5534, 5471, 5538, 
    5542, 5548, 6245, 6253, 6241, 6207, 
    6220, 6243, 6553, 7516, 11255, 11277, 
    11280, 10412, 7514, 7521, 7515, 7519, 
    7524, 10371, 11222, 10411, 11102, 11112, 
    10999
  ) 
  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.00223

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "67.71"
    },
    "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": 106,
        "rows_produced_per_join": 21,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (4974,5376,5397,4995,5549,4992,4991,5346,6823,5472,5387,5565,5309,5386,5568,5393,4988,5468,5394,5375,5396,4961,5467,5370,5566,4989,5377,5369,5567,5477,5374,5550,5388,5541,5564,5544,5555,5371,5392,5466,5390,5372,5473,6773,5546,5391,5389,5398,5469,5543,5470,5547,5534,5471,5538,5542,5548,6245,6253,6241,6207,6220,6243,6553,7516,11255,11277,11280,10412,7514,7521,7515,7519,7524,10371,11222,10411,11102,11112,10999))",
        "cost_info": {
          "read_cost": "65.59",
          "eval_cost": "2.12",
          "prefix_cost": "67.71",
          "data_read_per_join": "508"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
4961 599250.00000000
4974 269250.00000000
4988 749250.00000000
4989 499000.00000000
4991 299250.00000000
4992 182000.00000000
4995 156750.00000000
5309 267000.00000000
5346 735000.00000000
5369 710000.00000000
5370 710000.00000000
5371 1390000.00000000
5372 1725000.00000000
5374 825000.00000000
5375 735000.00000000
5376 825000.00000000
5377 1025000.00000000
5386 2250000.00000000
5387 90000.00000000
5388 82500.00000000
5389 290000.00000000
5390 98750.00000000
5391 940000.00000000
5392 245000.00000000
5393 1235000.00000000
5394 1320000.00000000
5396 945000.00000000
5397 1050000.00000000
5398 145000.00000000
5466 415000.00000000
5467 945000.00000000
5468 1035000.00000000
5469 525000.00000000
5470 1275000.00000000
5471 1725000.00000000
5472 6000000.00000000
5473 6450000.00000000
5477 1520000.00000000
5534 1725000.00000000
5538 1575000.00000000
5541 1085000.00000000
5542 1225000.00000000
5543 1225000.00000000
5544 74500.00000000
5546 210000.00000000
5547 57750.00000000
5548 73500.00000000
5549 422500.00000000
5550 3375000.00000000
5555 5700000.00000000
5564 6375000.00000000
5565 3195000.00000000
5566 2750000.00000000
5567 1815000.00000000
5568 1725000.00000000
6207 650000.00000000
6220 450000.00000000
6241 450000.00000000
6243 330000.00000000
6245 380000.00000000
6253 1300000.00000000
6553 79000.00000000
6773 86000.00000000
6823 67000.00000000
7514 705000.00000000
7515 220000.00000000
7516 174000.00000000
7519 105000.00000000
7521 180000.00000000
7524 38000.00000000
10371 189750.00000000
10411 29000.00000000
10412 0.00000000
10999 125000.00000000
11102 85000.00000000
11112 90000.00000000
11222 190000.00000000
11255 350000.00000000
11277 385000.00000000
11280 1500000.00000000