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 (
    10300, 10304, 10307, 10308, 10332, 10340, 
    10363, 9750, 9867, 10302, 10333, 10336, 
    10341, 10343, 9757, 9902, 9908, 9984, 
    9990, 10016
  ) 
  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.00129

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "27.96"
    },
    "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": 51,
        "rows_produced_per_join": 10,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (10300,10304,10307,10308,10332,10340,10363,9750,9867,10302,10333,10336,10341,10343,9757,9902,9908,9984,9990,10016))",
        "cost_info": {
          "read_cost": "26.94",
          "eval_cost": "1.02",
          "prefix_cost": "27.96",
          "data_read_per_join": "244"
        },
        "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
9750 309000.00000000
9757 266000.00000000
9867 351000.00000000
9902 195000.00000000
9908 235000.00000000
9984 218000.00000000
9990 579000.00000000
10016 209000.00000000
10300 277000.00000000
10302 369000.00000000
10304 436000.00000000
10307 965000.00000000
10308 965000.00000000
10332 1032000.00000000
10333 1224000.00000000
10336 322000.00000000
10340 521000.00000000
10341 362000.00000000
10343 440000.00000000
10363 625000.00000000