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 (
    5525, 5555, 5580, 5679, 5770, 5220, 5321, 
    6373, 6440, 5221, 5371, 5533, 5916, 
    5575, 5579, 5584, 5773, 8714, 5392, 
    5481, 5865, 6799, 8713, 8720
  ) 
  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.00167

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 (5525,5555,5580,5679,5770,5220,5321,6373,6440,5221,5371,5533,5916,5575,5579,5584,5773,8714,5392,5481,5865,6799,8713,8720))",
        "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
5220 18000.00000000
5221 18000.00000000
5321 17000.00000000
5371 1390000.00000000
5392 245000.00000000
5481 160000.00000000
5525 155500.00000000
5533 385000.00000000
5555 5700000.00000000
5575 20000.00000000
5579 3475000.00000000
5580 20000.00000000
5584 4075000.00000000
5679 175000.00000000
5770 1039500.00000000
5773 625000.00000000
5865 1532250.00000000
5916 897750.00000000
6373 659000.00000000
6440 1890000.00000000
6799 85000.00000000
8713 439000.00000000
8714 565000.00000000
8720 1399000.00000000