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 (
    3801, 3919, 4196, 4362, 7346, 2880, 2268, 
    2091, 4514, 4454, 5778, 2208, 10097, 
    2115, 1845, 2089, 3356, 3498, 4475, 
    5028, 5286, 10267, 3014, 4794
  ) 
  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.00102

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 (3801,3919,4196,4362,7346,2880,2268,2091,4514,4454,5778,2208,10097,2115,1845,2089,3356,3498,4475,5028,5286,10267,3014,4794))",
        "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
1845 215000.00000000
2089 450000.00000000
2091 247500.00000000
2115 566500.00000000
2208 350000.00000000
2268 134000.00000000
2880 107000.00000000
3014 133500.00000000
3356 31000.00000000
3498 31000.00000000
3801 720000.00000000
3919 92000.00000000
4196 25000.00000000
4362 15000.00000000
4454 78000.00000000
4475 341000.00000000
4514 10000.00000000
4794 720000.00000000
5028 57000.00000000
5286 8000.00000000
5778 1350000.00000000
7346 83500.00000000
10097 22000.00000000
10267 48000.00000000