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 (
    8590, 8560, 8914, 8933, 8739, 8748, 8629, 
    8775, 8787, 8783, 8737, 8470, 8742, 
    8815, 8567, 8683, 10174, 8575, 9972, 
    10104, 8581, 9952, 9937, 9968
  ) 
  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.00092

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 (8590,8560,8914,8933,8739,8748,8629,8775,8787,8783,8737,8470,8742,8815,8567,8683,10174,8575,9972,10104,8581,9952,9937,9968))",
        "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
8470 38000.00000000
8560 84000.00000000
8567 89000.00000000
8575 79000.00000000
8581 59000.00000000
8590 44000.00000000
8629 46000.00000000
8683 45000.00000000
8737 76000.00000000
8739 67000.00000000
8742 60000.00000000
8748 55000.00000000
8775 199000.00000000
8783 49000.00000000
8787 59000.00000000
8815 29000.00000000
8914 49000.00000000
8933 53000.00000000
9937 63000.00000000
9952 21000.00000000
9968 28000.00000000
9972 112000.00000000
10104 203000.00000000
10174 82000.00000000