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 (
    9895, 9907, 9976, 9977, 9983, 9987, 9988, 
    9997, 10041, 10057, 10062, 10063, 10079, 
    10241, 10303, 10445, 10478, 10536, 
    10556, 10574, 10583, 10585, 10590, 
    10592
  ) 
  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.00144

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "29.86"
    },
    "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": 53,
        "rows_produced_per_join": 10,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9895,9907,9976,9977,9983,9987,9988,9997,10041,10057,10062,10063,10079,10241,10303,10445,10478,10536,10556,10574,10583,10585,10590,10592))",
        "cost_info": {
          "read_cost": "28.80",
          "eval_cost": "1.06",
          "prefix_cost": "29.86",
          "data_read_per_join": "254"
        },
        "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
9895 35000.00000000
9907 144500.00000000
9976 496000.00000000
9977 856000.00000000
9983 70000.00000000
9987 522000.00000000
9988 85000.00000000
9997 44250.00000000
10041 75000.00000000
10057 27000.00000000
10062 145000.00000000
10063 145000.00000000
10079 41000.00000000
10241 133000.00000000
10303 251000.00000000
10445 148000.00000000
10478 64000.00000000
10536 142000.00000000
10556 215000.00000000
10574 40500.00000000
10583 70000.00000000
10585 70000.00000000
10590 40250.00000000
10592 40500.00000000