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 (
    402270, 409565, 460167, 427920, 404850, 
    452306, 433998, 428694, 454298, 452982, 
    456262, 419210
  ) 
  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.00102

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 (402270,409565,460167,427920,404850,452306,433998,428694,454298,452982,456262,419210) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
402270 1555.26000000
404850 1015.86000000
409565 1688.06000000
419210 277.36000000
427920 822.88000000
428694 818.88000000
433998 1101.99000000
452306 1963.35000000
452982 549.47000000
454298 1858.23000000
456262 228.19000000
460167 445.01000000