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 (
    25287, 25288, 25289, 25290, 25291, 25292, 
    25293, 25294, 25295, 25296, 25297, 
    25298, 25299, 25300, 25301, 25302
  ) 
  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.00038

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.99243164,
      "index_condition": "cscart_product_prices.product_id in (25287,25288,25289,25290,25291,25292,25293,25294,25295,25296,25297,25298,25299,25300,25301,25302)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
25287 400.00000000
25288 1300.00000000
25289 400.00000000
25290 2900.00000000
25291 48031500.00000000
25292 861800.00000000
25293 107000.00000000
25294 107000.00000000
25295 8400.00000000
25296 7100.00000000
25297 7100.00000000
25298 182700.00000000
25299 50200.00000000
25300 23800.00000000
25301 542300.00000000
25302 444800.00000000