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 (
    9852, 9854, 9901, 9942, 9947, 9982, 10084, 
    8551, 8556, 8610, 8613, 8634, 8640, 
    8744, 8747, 8761, 8769, 8773, 8832, 
    8968, 8970, 8971, 8972, 8975
  ) 
  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 (9852,9854,9901,9942,9947,9982,10084,8551,8556,8610,8613,8634,8640,8744,8747,8761,8769,8773,8832,8968,8970,8971,8972,8975))",
        "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
8551 56000.00000000
8556 89000.00000000
8610 15500.00000000
8613 290000.00000000
8634 70000.00000000
8640 70000.00000000
8744 135000.00000000
8747 150000.00000000
8761 248250.00000000
8769 249000.00000000
8773 128000.00000000
8832 144750.00000000
8968 98250.00000000
8970 42750.00000000
8971 36500.00000000
8972 47000.00000000
8975 45000.00000000
9852 120000.00000000
9854 50000.00000000
9901 26000.00000000
9942 51000.00000000
9947 22000.00000000
9982 75000.00000000
10084 61000.00000000