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 (
    6925, 6946, 6953, 6954, 6960, 6962, 6972, 
    7016, 7056, 7088, 7112, 7123, 7135, 
    7137, 7145, 7149, 7150, 7178, 7180, 
    7205, 7296, 7299, 6875, 6884
  ) 
  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.00100

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 (6925,6946,6953,6954,6960,6962,6972,7016,7056,7088,7112,7123,7135,7137,7145,7149,7150,7178,7180,7205,7296,7299,6875,6884))",
        "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
6875 33000.00000000
6884 90000.00000000
6925 128000.00000000
6946 122000.00000000
6953 249000.00000000
6954 149000.00000000
6960 76000.00000000
6962 76000.00000000
6972 64000.00000000
7016 220000.00000000
7056 499000.00000000
7088 89000.00000000
7112 240000.00000000
7123 24000.00000000
7135 159000.00000000
7137 79000.00000000
7145 150000.00000000
7149 95000.00000000
7150 318000.00000000
7178 170000.00000000
7180 245000.00000000
7205 71000.00000000
7296 24000.00000000
7299 24000.00000000