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 (
    6903, 6911, 6993, 7438, 7415, 7422, 7439, 
    7443, 6880, 6996, 9523, 7172, 9520, 
    8132, 8133, 9372, 9413, 9521, 9522, 
    9368, 9374, 9375, 9624, 8793, 9414, 
    9415, 9419, 9420, 9426, 9427, 9524, 
    9416, 9417, 9418, 9469, 8791, 8794, 
    9373, 8413, 8790, 8792
  ) 
  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": "28.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": 41,
        "rows_produced_per_join": 8,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6903,6911,6993,7438,7415,7422,7439,7443,6880,6996,9523,7172,9520,8132,8133,9372,9413,9521,9522,9368,9374,9375,9624,8793,9414,9415,9419,9420,9426,9427,9524,9416,9417,9418,9469,8791,8794,9373,8413,8790,8792))",
        "cost_info": {
          "read_cost": "27.89",
          "eval_cost": "0.82",
          "prefix_cost": "28.71",
          "data_read_per_join": "196"
        },
        "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
6880 5500.00000000
6903 4000.00000000
6911 6000.00000000
6993 15000.00000000
6996 18000.00000000
7172 27000.00000000
7415 4000.00000000
7422 3750.00000000
7438 3000.00000000
7439 4250.00000000
7443 3750.00000000
8132 30000.00000000
8133 23000.00000000
8413 19000.00000000
8790 18000.00000000
8791 33000.00000000
8792 18000.00000000
8793 18000.00000000
8794 18000.00000000
9368 8000.00000000
9372 8000.00000000
9373 10000.00000000
9374 10000.00000000
9375 11000.00000000
9413 12500.00000000
9414 10000.00000000
9415 8000.00000000
9416 10000.00000000
9417 13000.00000000
9418 12500.00000000
9419 11000.00000000
9420 13000.00000000
9426 10000.00000000
9427 10000.00000000
9469 9000.00000000
9520 7000.00000000
9521 7000.00000000
9522 29000.00000000
9523 12000.00000000
9524 7000.00000000
9624 19000.00000000