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 (
    5360, 3522, 4410, 11206, 2520, 4045, 
    4470, 10135, 10397, 6266, 3401, 4513, 
    2224, 2448, 3023, 4343, 5197, 5985, 
    5245, 2195, 6101, 4130, 4139, 4872
  ) 
  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.00116

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.06"
    },
    "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": 29,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5360,3522,4410,11206,2520,4045,4470,10135,10397,6266,3401,4513,2224,2448,3023,4343,5197,5985,5245,2195,6101,4130,4139,4872))",
        "cost_info": {
          "read_cost": "18.48",
          "eval_cost": "0.58",
          "prefix_cost": "19.06",
          "data_read_per_join": "139"
        },
        "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
2195 43000.00000000
2224 18000.00000000
2448 197000.00000000
2520 36000.00000000
3023 49500.00000000
3401 102000.00000000
3522 13000.00000000
4045 5000.00000000
4130 119000.00000000
4139 15000.00000000
4343 13000.00000000
4410 198000.00000000
4470 312000.00000000
4513 15000.00000000
4872 431000.00000000
5197 35000.00000000
5245 65000.00000000
5360 33000.00000000
5985 594000.00000000
6101 52000.00000000
6266 841000.00000000
10135 1164000.00000000
10397 190000.00000000
11206 210000.00000000