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 (
    8500, 8501, 8502, 8514, 8519, 8520, 8521, 
    8522, 8524, 8525, 8526, 8527, 8528, 
    8529, 8530, 8539
  ) 
  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.00035

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_product_prices",
      "access_type": "range",
      "possible_keys": ["usergroup", "product_id", "lower_limit", "usergroup_id"],
      "key": "product_id",
      "key_length": "3",
      "used_key_parts": ["product_id"],
      "rows": 16,
      "filtered": 99.99243927,
      "index_condition": "cscart_product_prices.product_id in (8500,8501,8502,8514,8519,8520,8521,8522,8524,8525,8526,8527,8528,8529,8530,8539)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
8500 600.00000000
8501 0.00000000
8502 0.00000000
8514 363000.00000000
8519 60600.00000000
8520 60600.00000000
8521 23000.00000000
8522 60600.00000000
8524 109900.00000000
8525 0.00000000
8526 400.00000000
8527 400.00000000
8528 400.00000000
8529 1300.00000000
8530 1300.00000000
8539 6300.00000000