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 (
    5879, 5876, 5536, 5792, 8723, 5769, 5537, 
    5790, 5535, 5533, 5793, 5874, 5878, 
    5875, 5877, 6586, 6225, 6746, 6731, 
    6732, 6744, 6756, 6758, 10545
  ) 
  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.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.71"
    },
    "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": 26,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5879,5876,5536,5792,8723,5769,5537,5790,5535,5533,5793,5874,5878,5875,5877,6586,6225,6746,6731,6732,6744,6756,6758,10545))",
        "cost_info": {
          "read_cost": "17.19",
          "eval_cost": "0.52",
          "prefix_cost": "17.71",
          "data_read_per_join": "124"
        },
        "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
5533 385000.00000000
5535 340000.00000000
5536 257500.00000000
5537 295000.00000000
5769 1296000.00000000
5790 724000.00000000
5792 536000.00000000
5793 724000.00000000
5874 405000.00000000
5875 229500.00000000
5876 270000.00000000
5877 270000.00000000
5878 270000.00000000
5879 958500.00000000
6225 1400000.00000000
6586 159000.00000000
6731 151000.00000000
6732 184000.00000000
6744 375000.00000000
6746 347000.00000000
6756 250000.00000000
6758 289000.00000000
8723 92000.00000000
10545 239000.00000000