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
  ) 
  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.00136

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 (435351,456510,404001,413818,442117,433550,450230,439049,414690,448070,414544,431904,404473,422990,448236,413068,425901,407405,406178,437072,430766,447574,460572,460325) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
404001 1873.00000000
404473 373.93000000
406178 1323.55000000
407405 1054.17000000
413068 919.78000000
413818 1512.59000000
414544 1193.46000000
414690 1960.84000000
422990 1656.55000000
425901 706.65000000
430766 830.39000000
431904 1868.06000000
433550 1613.43000000
435351 396.42000000
437072 685.71000000
439049 455.39000000
442117 99.32000000
447574 1579.47000000
448070 682.78000000
448236 712.59000000
450230 106.98000000
456510 1892.84000000
460325 497.48000000
460572 1966.03000000