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 (
    401460, 449782, 411217, 458952, 435731, 
    454091, 426845, 445339, 405895, 437534, 
    423647, 455934
  ) 
  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.00101

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.050158501,
    "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": 24,
          "cost": 0.04252208,
          "filtered": 49.99988556,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (401460,449782,411217,458952,435731,454091,426845,445339,405895,437534,423647,455934) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401460 1746.79000000
405895 1266.13000000
411217 273.48000000
423647 624.24000000
426845 1371.36000000
435731 1939.22000000
437534 965.00000000
445339 1294.24000000
449782 1685.37000000
454091 780.57000000
455934 860.70000000
458952 552.43000000