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 (
    2827, 2895, 3544, 4566, 5204, 5958, 10399, 
    1255, 5767, 4878, 2196, 3502, 3988, 
    4663, 5884, 4365, 5244, 5386, 3537, 
    4451, 5568, 6261, 2240, 4144
  ) 
  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.00099

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.71"
    },
    "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": 26,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2827,2895,3544,4566,5204,5958,10399,1255,5767,4878,2196,3502,3988,4663,5884,4365,5244,5386,3537,4451,5568,6261,2240,4144))",
        "cost_info": {
          "read_cost": "17.19",
          "eval_cost": "0.52",
          "prefix_cost": "17.71",
          "data_read_per_join": "124"
        },
        "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
1255 715000.00000000
2196 26000.00000000
2240 540000.00000000
2827 1432000.00000000
2895 484000.00000000
3502 425000.00000000
3537 22000.00000000
3544 3850000.00000000
3988 990000.00000000
4144 8000.00000000
4365 5000.00000000
4451 264000.00000000
4566 1425000.00000000
4663 30000.00000000
4878 259000.00000000
5204 8250.00000000
5244 60000.00000000
5386 2250000.00000000
5568 1725000.00000000
5767 1957500.00000000
5884 16000.00000000
5958 98000.00000000
6261 754000.00000000
10399 99000.00000000