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 (
    5362, 5573, 5540, 5226, 5300, 5466, 5570, 
    5260, 5642, 5225, 5108, 5110, 5390, 
    5569, 5576, 5023, 5223, 5256, 5345, 
    5351, 5257, 5180, 5200, 5295
  ) 
  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.00101

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 (5362,5573,5540,5226,5300,5466,5570,5260,5642,5225,5108,5110,5390,5569,5576,5023,5223,5256,5345,5351,5257,5180,5200,5295))",
        "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
5023 13950.00000000
5108 35000.00000000
5110 35000.00000000
5180 8250.00000000
5200 35000.00000000
5223 18000.00000000
5225 18000.00000000
5226 18000.00000000
5256 97500.00000000
5257 21000.00000000
5260 38000.00000000
5295 19000.00000000
5300 17000.00000000
5345 17000.00000000
5351 20000.00000000
5362 30000.00000000
5390 98750.00000000
5466 415000.00000000
5540 35000.00000000
5569 20000.00000000
5570 20000.00000000
5573 20000.00000000
5576 20000.00000000
5642 20000.00000000