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 (
    9894, 9928, 10008, 10010, 10072, 10083, 
    10087, 10231, 10246, 10251, 10262, 
    10269, 10271, 10280, 10301, 10314, 
    10319, 10352, 10353, 10357
  ) 
  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.00196

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 (9894,9928,10008,10010,10072,10083,10087,10231,10246,10251,10262,10269,10271,10280,10301,10314,10319,10352,10353,10357))",
        "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
9894 43500.00000000
9928 4250.00000000
10008 32000.00000000
10010 35000.00000000
10072 35000.00000000
10083 470000.00000000
10087 990000.00000000
10231 10000.00000000
10246 9000.00000000
10251 6000.00000000
10262 43000.00000000
10269 16000.00000000
10271 13000.00000000
10280 9000.00000000
10301 400000.00000000
10314 1400000.00000000
10319 1890000.00000000
10352 65000.00000000
10353 69750.00000000
10357 55000.00000000