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 (
    13439, 13440, 13441, 13442, 13443, 13444, 
    13445, 13446, 13447, 13448, 13449, 
    13450, 13451, 13452, 13453, 13454, 
    13455, 13456, 13457, 13458, 13459, 
    13460, 13461, 13462
  ) 
  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.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.061901185,
    "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.95539856,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (13439,13440,13441,13442,13443,13444,13445,13446,13447,13448,13449,13450,13451,13452,13453,13454,13455,13456,13457,13458,13459,13460,13461,13462) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
13439 6.50000000
13440 4.50000000
13441 4.10000000
13442 4.10000000
13443 4.10000000
13444 4.50000000
13445 4.90000000
13446 7.70000000
13447 5.30000000
13448 4.10000000
13449 7.30000000
13450 4.10000000
13451 4.10000000
13452 5.70000000
13453 11.70000000
13454 5.80000000
13455 4.50000000
13456 4.50000000
13457 4.90000000
13458 5.70000000
13459 4.90000000
13460 13.70000000
13461 4.50000000
13462 5.70000000