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 (
    2623, 2729, 2098, 1664, 2761, 2774, 5794, 
    2702, 3564, 4836, 3269, 1548, 2455, 
    4085, 4231, 3147, 4058, 5207, 6099, 
    5037, 5737, 10033, 4176, 6385
  ) 
  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.00119

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 (2623,2729,2098,1664,2761,2774,5794,2702,3564,4836,3269,1548,2455,4085,4231,3147,4058,5207,6099,5037,5737,10033,4176,6385))",
        "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
1548 225000.00000000
1664 97000.00000000
2098 24000.00000000
2455 975000.00000000
2623 839000.00000000
2702 15000.00000000
2729 70000.00000000
2761 193000.00000000
2774 73000.00000000
3147 6000.00000000
3269 690000.00000000
3564 450000.00000000
4058 28000.00000000
4085 750000.00000000
4176 83000.00000000
4231 60000.00000000
4836 15000.00000000
5037 93000.00000000
5207 8250.00000000
5737 823500.00000000
5794 75000.00000000
6099 60000.00000000
6385 690000.00000000
10033 30000.00000000