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 (
    6861, 6862, 6857, 7391, 7022, 7390, 7848, 
    7847, 7891, 8611, 7593, 9488, 7591, 
    7592, 8555, 8608, 8558, 9486, 9487, 
    8557, 8609, 9485, 8556, 9022
  ) 
  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.00092

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 (6861,6862,6857,7391,7022,7390,7848,7847,7891,8611,7593,9488,7591,7592,8555,8608,8558,9486,9487,8557,8609,9485,8556,9022))",
        "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
6857 105000.00000000
6861 153000.00000000
6862 111000.00000000
7022 100000.00000000
7390 122500.00000000
7391 101250.00000000
7591 134000.00000000
7592 124000.00000000
7593 96000.00000000
7847 123250.00000000
7848 119000.00000000
7891 126250.00000000
8555 94000.00000000
8556 89000.00000000
8557 169000.00000000
8558 95000.00000000
8608 98000.00000000
8609 102000.00000000
8611 125000.00000000
9022 101250.00000000
9485 85000.00000000
9486 125000.00000000
9487 120000.00000000
9488 98000.00000000