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 (
    417977, 418226, 423333, 449562, 401443, 
    449507, 433832, 409821, 434815, 418429, 
    428304, 454998
  ) 
  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.00089

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.050171963,
    "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": 50,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (417977,418226,423333,449562,401443,449507,433832,409821,434815,418429,428304,454998) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
401443 1126.30000000
409821 500.91000000
417977 1002.20000000
418226 1075.90000000
418429 249.76000000
423333 1874.83000000
428304 60.88000000
433832 371.28000000
434815 798.01000000
449507 1550.69000000
449562 475.23000000
454998 547.24000000