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 (
    5669, 5808, 6447, 8261, 5048, 2701, 3769, 
    4099, 4546, 5247, 5306, 5382, 5525, 
    5555, 5580, 5679, 5770, 6522, 8338, 
    5220, 5321, 3568, 3642, 3745
  ) 
  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.00164

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 (5669,5808,6447,8261,5048,2701,3769,4099,4546,5247,5306,5382,5525,5555,5580,5679,5770,6522,8338,5220,5321,3568,3642,3745))",
        "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
2701 70000.00000000
3568 2640000.00000000
3642 9000.00000000
3745 4500.00000000
3769 4500.00000000
4099 5000.00000000
4546 1125000.00000000
5048 290000.00000000
5220 18000.00000000
5247 162000.00000000
5306 17000.00000000
5321 17000.00000000
5382 307500.00000000
5525 155500.00000000
5555 5700000.00000000
5580 20000.00000000
5669 105000.00000000
5679 175000.00000000
5770 1039500.00000000
5808 475000.00000000
6447 895000.00000000
6522 75000.00000000
8261 105000.00000000
8338 6750.00000000