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 (
    406851, 447289, 403492, 409045, 411798, 
    455469, 403314, 459175, 412726, 446945, 
    419788, 441409, 421788, 429875, 408990, 
    457492, 402535, 424481, 421915, 427033, 
    425013, 423301, 403335, 416458, 413195, 
    452439, 456232, 409981, 422412, 444874, 
    411736, 410485
  ) 
  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.00164

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.132572317,
    "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": 64,
          "cost": 0.11207368,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (406851,447289,403492,409045,411798,455469,403314,459175,412726,446945,419788,441409,421788,429875,408990,457492,402535,424481,421915,427033,425013,423301,403335,416458,413195,452439,456232,409981,422412,444874,411736,410485) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
402535 1370.33000000
403314 1504.34000000
403335 605.23000000
403492 1656.77000000
406851 897.54000000
408990 45.41000000
409045 1075.93000000
409981 1509.98000000
410485 118.68000000
411736 1437.16000000
411798 181.36000000
412726 1709.96000000
413195 1185.00000000
416458 635.45000000
419788 265.05000000
421788 685.19000000
421915 675.93000000
422412 1865.98000000
423301 606.61000000
424481 1679.46000000
425013 1757.21000000
427033 1681.18000000
429875 359.71000000
441409 529.31000000
444874 1697.77000000
446945 1470.39000000
447289 1968.16000000
452439 110.98000000
455469 1086.46000000
456232 173.39000000
457492 1373.12000000
459175 527.93000000