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 (
    9462, 9463, 9471, 9485, 9499, 9533, 9552, 
    9564, 9566, 9595, 9686, 9692, 9742, 
    9764, 9770, 9771, 9797, 9800, 9804, 
    9808, 9809, 9822, 9832, 9847
  ) 
  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.00112

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 (9462,9463,9471,9485,9499,9533,9552,9564,9566,9595,9686,9692,9742,9764,9770,9771,9797,9800,9804,9808,9809,9822,9832,9847))",
        "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
9462 160000.00000000
9463 65000.00000000
9471 22250.00000000
9485 85000.00000000
9499 12750.00000000
9533 134000.00000000
9552 160000.00000000
9564 11000.00000000
9566 11000.00000000
9595 5750.00000000
9686 6000.00000000
9692 5000.00000000
9742 7250.00000000
9764 110000.00000000
9770 11000.00000000
9771 7250.00000000
9797 8000.00000000
9800 140500.00000000
9804 116250.00000000
9808 66750.00000000
9809 72250.00000000
9822 105000.00000000
9832 5250.00000000
9847 66000.00000000