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 (
    8326, 8328, 8333, 8342, 8343, 8344, 8345, 
    8355, 8356, 8362, 8365, 8366, 8367, 
    8368, 8370, 8371
  ) 
  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.00039

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 (8326,8328,8333,8342,8343,8344,8345,8355,8356,8362,8365,8366,8367,8368,8370,8371)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
8326 510400.00000000
8328 330000.00000000
8333 20100.00000000
8342 938500.00000000
8343 69400.00000000
8344 87800.00000000
8345 405900.00000000
8355 176300.00000000
8356 176300.00000000
8362 800.00000000
8365 1300.00000000
8366 92000.00000000
8367 131300.00000000
8368 43500.00000000
8370 472100.00000000
8371 223300.00000000