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 (
    8218, 9076, 9124, 9159, 9816, 9939, 7501, 
    9048, 9051, 9160, 9234, 9451, 9455, 
    7508, 7558, 7559, 7565, 7567, 7848, 
    7853, 8227, 9103, 9110, 9465
  ) 
  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.00083

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 (8218,9076,9124,9159,9816,9939,7501,9048,9051,9160,9234,9451,9455,7508,7558,7559,7565,7567,7848,7853,8227,9103,9110,9465))",
        "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
7501 239750.00000000
7508 148500.00000000
7558 44750.00000000
7559 43500.00000000
7565 87750.00000000
7567 60750.00000000
7848 119000.00000000
7853 75000.00000000
8218 147250.00000000
8227 84000.00000000
9048 93750.00000000
9051 90750.00000000
9076 112500.00000000
9103 91500.00000000
9110 326250.00000000
9124 220000.00000000
9159 90000.00000000
9160 83000.00000000
9234 193500.00000000
9451 43250.00000000
9455 71250.00000000
9465 59000.00000000
9816 89000.00000000
9939 39000.00000000