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 (
    5346, 5387, 5309, 5386, 5370, 5369, 5371, 
    5392, 5390, 5372, 11255, 11277, 11280, 
    11222, 11102, 11112, 11120, 11311, 
    11312, 11098, 11262, 11283, 11314, 
    11285
  ) 
  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.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "32.11"
    },
    "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": 58,
        "rows_produced_per_join": 11,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5346,5387,5309,5386,5370,5369,5371,5392,5390,5372,11255,11277,11280,11222,11102,11112,11120,11311,11312,11098,11262,11283,11314,11285))",
        "cost_info": {
          "read_cost": "30.95",
          "eval_cost": "1.16",
          "prefix_cost": "32.11",
          "data_read_per_join": "278"
        },
        "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
5309 267000.00000000
5346 735000.00000000
5369 710000.00000000
5370 710000.00000000
5371 1390000.00000000
5372 1725000.00000000
5386 2250000.00000000
5387 90000.00000000
5390 98750.00000000
5392 245000.00000000
11098 75000.00000000
11102 85000.00000000
11112 90000.00000000
11120 150000.00000000
11222 190000.00000000
11255 350000.00000000
11262 350000.00000000
11277 385000.00000000
11280 1500000.00000000
11283 1000000.00000000
11285 1985000.00000000
11311 800000.00000000
11312 1100000.00000000
11314 1200000.00000000