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 (
    8492, 2899, 5288, 8487, 5523, 7614, 5666, 
    6823, 8503, 8505, 5968, 7613, 8496, 
    8489, 5179, 5263, 5920, 7248, 7615, 
    7492, 5665, 2465, 2784, 7290
  ) 
  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.00096

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (8492,2899,5288,8487,5523,7614,5666,6823,8503,8505,5968,7613,8496,8489,5179,5263,5920,7248,7615,7492,5665,2465,2784,7290))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
2465 715000.00000000
2784 61000.00000000
2899 115000.00000000
5179 8250.00000000
5263 8000.00000000
5288 8000.00000000
5523 94500.00000000
5665 212500.00000000
5666 168000.00000000
5920 904500.00000000
5968 810000.00000000
6823 67000.00000000
7248 760000.00000000
7290 535000.00000000
7492 560000.00000000
7613 535000.00000000
7614 325000.00000000
7615 945000.00000000
8487 552000.00000000
8489 515000.00000000
8492 370000.00000000
8496 740000.00000000
8503 3525000.00000000
8505 2375000.00000000