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 (
    6230, 6250, 6256, 6258, 6255, 6245, 6251, 
    6257, 6246, 6259, 6260, 6248, 6253, 
    6252, 6247, 6249, 6254
  ) 
  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.00044

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": 17,
      "filtered": 93.46080017,
      "index_condition": "cscart_product_prices.product_id in (6230,6250,6256,6258,6255,6245,6251,6257,6246,6259,6260,6248,6253,6252,6247,6249,6254)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
6230 111.120000
6245 156.250000
6246 118.330000
6247 562.500000
6248 604.170000
6249 604.170000
6250 472.080000
6251 472.080000
6252 326.670000
6253 326.670000
6254 326.670000
6255 394.170000
6256 394.170000
6257 394.170000
6258 137.500000
6259 33.330000
6260 38.330000