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 (
    8715, 3566, 4867, 6590, 3474, 3538, 4082, 
    6013, 4755, 4890, 3879, 4178, 4596, 
    2797, 4586, 3753, 4704, 6072, 9653, 
    2952
  ) 
  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.00189

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.01"
    },
    "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": 20,
        "rows_produced_per_join": 3,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (8715,3566,4867,6590,3474,3538,4082,6013,4755,4890,3879,4178,4596,2797,4586,3753,4704,6072,9653,2952))",
        "cost_info": {
          "read_cost": "13.61",
          "eval_cost": "0.40",
          "prefix_cost": "14.01",
          "data_read_per_join": "95"
        },
        "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
2797 477000.00000000
2952 59000.00000000
3474 1250000.00000000
3538 1025000.00000000
3566 735000.00000000
3753 263000.00000000
3879 72000.00000000
4082 750000.00000000
4178 119000.00000000
4586 305000.00000000
4596 260000.00000000
4704 574000.00000000
4755 1386000.00000000
4867 259000.00000000
4890 8000.00000000
6013 747000.00000000
6072 151000.00000000
6590 2700000.00000000
8715 665000.00000000
9653 635000.00000000