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 (
    406480, 437686, 423559, 424334, 460558, 
    456062, 432907, 404813, 447269, 409338, 
    403991, 456256, 420163, 453916, 414087, 
    424432, 428079, 401029, 456055, 445068, 
    418346, 407735, 436615, 428503, 417977, 
    418226, 423333, 449562, 401443, 449507, 
    433832, 409821, 434815, 418429, 428304, 
    454998, 401192, 420138, 420200, 411483, 
    433250, 448259, 456498, 453797, 440607, 
    427308, 452175, 444603, 434992, 435134, 
    446266, 428321, 423625, 436076, 428627, 
    446847, 439096, 440647, 439207, 451256, 
    460133, 459641, 419106, 460861, 423479, 
    433559, 440573, 421300, 443507, 438971, 
    404180, 445058, 441079, 442454, 460859, 
    414365, 440075, 444561, 438377, 430757, 
    425044, 446929, 406357, 435303, 435650, 
    455895, 409755, 444595, 456183, 430020, 
    405721, 408755, 406722, 444839, 428245, 
    418635
  ) 
  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.00261

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.396590684,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 192,
          "cost": 0.3346388,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (406480,437686,423559,424334,460558,456062,432907,404813,447269,409338,403991,456256,420163,453916,414087,424432,428079,401029,456055,445068,418346,407735,436615,428503,417977,418226,423333,449562,401443,449507,433832,409821,434815,418429,428304,454998,401192,420138,420200,411483,433250,448259,456498,453797,440607,427308,452175,444603,434992,435134,446266,428321,423625,436076,428627,446847,439096,440647,439207,451256,460133,459641,419106,460861,423479,433559,440573,421300,443507,438971,404180,445058,441079,442454,460859,414365,440075,444561,438377,430757,425044,446929,406357,435303,435650,455895,409755,444595,456183,430020,405721,408755,406722,444839,428245,418635) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401029 1028.61000000
401192 1754.15000000
401443 1126.30000000
403991 705.36000000
404180 1988.53000000
404813 1820.27000000
405721 552.56000000
406357 1903.04000000
406480 727.15000000
406722 68.94000000
407735 1510.95000000
408755 904.61000000
409338 725.98000000
409755 1568.05000000
409821 500.91000000
411483 840.27000000
414087 989.63000000
414365 1547.42000000
417977 1002.20000000
418226 1075.90000000
418346 1982.21000000
418429 249.76000000
418635 465.10000000
419106 55.49000000
420138 922.47000000
420163 1852.64000000
420200 1297.04000000
421300 1813.55000000
423333 1874.83000000
423479 524.47000000
423559 1313.40000000
423625 1000.12000000
424334 1309.48000000
424432 323.11000000
425044 181.54000000
427308 1983.23000000
428079 88.63000000
428245 1596.41000000
428304 60.88000000
428321 74.18000000
428503 1945.76000000
428627 1510.80000000
430020 446.88000000
430757 760.87000000
432907 1009.16000000
433250 1848.32000000
433559 506.81000000
433832 371.28000000
434815 798.01000000
434992 593.30000000
435134 1241.31000000
435303 1542.47000000
435650 924.02000000
436076 548.15000000
436615 573.94000000
437686 917.88000000
438377 1156.94000000
438971 44.98000000
439096 898.67000000
439207 1518.60000000
440075 1408.55000000
440573 1774.47000000
440607 618.97000000
440647 1747.46000000
441079 1999.15000000
442454 1447.39000000
443507 1789.25000000
444561 667.82000000
444595 1918.86000000
444603 749.70000000
444839 1340.49000000
445058 1462.62000000
445068 1109.98000000
446266 833.01000000
446847 1126.81000000
446929 12.18000000
447269 746.06000000
448259 1272.05000000
449507 1550.69000000
449562 475.23000000
451256 160.28000000
452175 1563.22000000
453797 1904.38000000
453916 751.72000000
454998 547.24000000
455895 1482.97000000
456055 739.84000000
456062 294.10000000
456183 1389.89000000
456256 1366.75000000
456498 1597.96000000
459641 32.24000000
460133 1617.08000000
460558 1374.89000000
460859 767.98000000
460861 74.19000000