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 (
    435351, 456510, 404001, 413818, 442117, 
    433550, 450230, 439049, 414690, 448070, 
    414544, 431904, 404473, 422990, 448236, 
    413068, 425901, 407405, 406178, 437072, 
    430766, 447574, 460572, 460325, 406193, 
    451309, 446162, 438117, 439044, 406083, 
    415033, 460158, 422354, 409660, 453640, 
    424754, 410340, 417422, 422439, 422004, 
    421990, 446415, 436834, 440447, 410009, 
    439533, 411516, 442635, 442715, 430741, 
    406089, 410471, 409489, 412459, 424229, 
    448141, 452096, 435935, 450361, 410461, 
    454777, 444113, 417555, 428819, 454049, 
    459252, 405167, 401806, 425534, 458860, 
    447690, 422606, 413386, 442183, 419735, 
    432464, 440571, 426931, 418909, 439791, 
    454556, 443028, 452359, 449330, 402443, 
    418233, 438218, 431841, 439184, 457686, 
    448158, 426138, 428377, 411651, 455838, 
    431788
  ) 
  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.00379

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 (435351,456510,404001,413818,442117,433550,450230,439049,414690,448070,414544,431904,404473,422990,448236,413068,425901,407405,406178,437072,430766,447574,460572,460325,406193,451309,446162,438117,439044,406083,415033,460158,422354,409660,453640,424754,410340,417422,422439,422004,421990,446415,436834,440447,410009,439533,411516,442635,442715,430741,406089,410471,409489,412459,424229,448141,452096,435935,450361,410461,454777,444113,417555,428819,454049,459252,405167,401806,425534,458860,447690,422606,413386,442183,419735,432464,440571,426931,418909,439791,454556,443028,452359,449330,402443,418233,438218,431841,439184,457686,448158,426138,428377,411651,455838,431788) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401806 1199.96000000
402443 376.16000000
404001 1873.00000000
404473 373.93000000
405167 796.49000000
406083 1771.97000000
406089 1137.02000000
406178 1323.55000000
406193 1906.18000000
407405 1054.17000000
409489 1986.29000000
409660 142.82000000
410009 372.03000000
410340 1972.88000000
410461 1621.75000000
410471 1181.45000000
411516 952.41000000
411651 1654.14000000
412459 722.47000000
413068 919.78000000
413386 1649.79000000
413818 1512.59000000
414544 1193.46000000
414690 1960.84000000
415033 1764.06000000
417422 903.78000000
417555 489.85000000
418233 453.99000000
418909 1906.30000000
419735 1499.54000000
421990 1944.65000000
422004 150.15000000
422354 1973.27000000
422439 156.77000000
422606 1640.23000000
422990 1656.55000000
424229 462.10000000
424754 263.56000000
425534 454.51000000
425901 706.65000000
426138 1485.91000000
426931 940.14000000
428377 754.47000000
428819 1058.60000000
430741 1866.70000000
430766 830.39000000
431788 159.37000000
431841 1559.05000000
431904 1868.06000000
432464 1295.31000000
433550 1613.43000000
435351 396.42000000
435935 640.67000000
436834 1363.13000000
437072 685.71000000
438117 1560.96000000
438218 1963.42000000
439044 1729.13000000
439049 455.39000000
439184 651.96000000
439533 423.69000000
439791 529.97000000
440447 1540.47000000
440571 70.57000000
442117 99.32000000
442183 955.29000000
442635 689.94000000
442715 1214.03000000
443028 339.26000000
444113 1073.67000000
446162 604.57000000
446415 187.53000000
447574 1579.47000000
447690 1727.27000000
448070 682.78000000
448141 267.38000000
448158 1550.90000000
448236 712.59000000
449330 1961.57000000
450230 106.98000000
450361 1449.96000000
451309 759.88000000
452096 1910.89000000
452359 1063.56000000
453640 1649.00000000
454049 1194.71000000
454556 1983.95000000
454777 1590.72000000
455838 978.07000000
456510 1892.84000000
457686 1211.49000000
458860 425.01000000
459252 1829.07000000
460158 787.99000000
460325 497.48000000
460572 1966.03000000