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 (
    9796, 9806, 9815, 9824, 9851, 9853, 9856, 
    9861, 9887, 9890, 9897, 9898, 9903, 
    9938, 9957, 9991, 9993, 10061, 9198, 
    8036, 8047, 9026, 9073, 9074
  ) 
  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.00095

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 (9796,9806,9815,9824,9851,9853,9856,9861,9887,9890,9897,9898,9903,9938,9957,9991,9993,10061,9198,8036,8047,9026,9073,9074))",
        "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
8036 173000.00000000
8047 521000.00000000
9026 285000.00000000
9073 44000.00000000
9074 48500.00000000
9198 144750.00000000
9796 149000.00000000
9806 129500.00000000
9815 20000.00000000
9824 129000.00000000
9851 92000.00000000
9853 80000.00000000
9856 100000.00000000
9861 77500.00000000
9887 108750.00000000
9890 52500.00000000
9897 29250.00000000
9898 66750.00000000
9903 80750.00000000
9938 85000.00000000
9957 44000.00000000
9991 65000.00000000
9993 66000.00000000
10061 175000.00000000