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 (
    410471, 409489, 412459, 424229, 448141, 
    452096, 435935, 450361, 410461, 454777, 
    444113, 417555, 428819, 454049, 459252, 
    405167, 401806, 425534, 458860, 447690, 
    422606, 413386, 442183, 419735
  ) 
  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.00155

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.099614043,
    "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": 48,
          "cost": 0.08425304,
          "filtered": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (410471,409489,412459,424229,448141,452096,435935,450361,410461,454777,444113,417555,428819,454049,459252,405167,401806,425534,458860,447690,422606,413386,442183,419735) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401806 1199.96000000
405167 796.49000000
409489 1986.29000000
410461 1621.75000000
410471 1181.45000000
412459 722.47000000
413386 1649.79000000
417555 489.85000000
419735 1499.54000000
422606 1640.23000000
424229 462.10000000
425534 454.51000000
428819 1058.60000000
435935 640.67000000
442183 955.29000000
444113 1073.67000000
447690 1727.27000000
448141 267.38000000
450361 1449.96000000
452096 1910.89000000
454049 1194.71000000
454777 1590.72000000
458860 425.01000000
459252 1829.07000000