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 (
    403905, 410883, 408899, 408775, 440269, 
    435840, 444141, 410125, 453374, 429849, 
    427100, 430100, 427619, 444547, 432847, 
    403496, 431636, 455406, 435103, 415659, 
    443503, 401160, 406539, 408349
  ) 
  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.00138

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 (403905,410883,408899,408775,440269,435840,444141,410125,453374,429849,427100,430100,427619,444547,432847,403496,431636,455406,435103,415659,443503,401160,406539,408349) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401160 449.72000000
403496 817.26000000
403905 1447.21000000
406539 1434.86000000
408349 301.70000000
408775 268.69000000
408899 748.90000000
410125 543.96000000
410883 507.37000000
415659 1115.99000000
427100 1064.09000000
427619 511.16000000
429849 1472.85000000
430100 1003.40000000
431636 1836.12000000
432847 1776.84000000
435103 1152.26000000
435840 391.24000000
440269 1140.40000000
443503 416.96000000
444141 1027.80000000
444547 393.46000000
453374 522.43000000
455406 394.62000000