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 (
    13416, 13417, 13418, 13452, 13419, 13420, 
    13453, 13502, 13421, 13501, 13422, 
    13454, 13455, 13423, 13456, 13457, 
    13458, 13459, 13505, 13424, 13496, 
    13425, 13426, 13495
  ) 
  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.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.06190128,
    "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.04656984,
          "filtered": 49.95571136,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (13416,13417,13418,13452,13419,13420,13453,13502,13421,13501,13422,13454,13455,13423,13456,13457,13458,13459,13505,13424,13496,13425,13426,13495) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
13416 12.00000000
13417 18.00000000
13418 12.00000000
13419 21.00000000
13420 15.00000000
13421 15.00000000
13422 15.00000000
13423 12.00000000
13424 12.00000000
13425 12.00000000
13426 12.00000000
13452 5.70000000
13453 11.70000000
13454 5.80000000
13455 4.50000000
13456 4.50000000
13457 4.90000000
13458 5.70000000
13459 4.90000000
13495 3.00000000
13496 4.00000000
13501 20.00000000
13502 20.00000000
13505 8.00000000