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 (
    7045, 7169, 7395, 7403, 7427, 8131, 7046, 
    6475, 6512, 7349, 7405, 7546, 9000, 
    10351, 6465, 6501, 6871, 7120, 7435, 
    7539, 7547, 7712, 8044, 6889
  ) 
  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.00104

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 (7045,7169,7395,7403,7427,8131,7046,6475,6512,7349,7405,7546,9000,10351,6465,6501,6871,7120,7435,7539,7547,7712,8044,6889))",
        "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
6465 122500.00000000
6475 61250.00000000
6501 25000.00000000
6512 140000.00000000
6871 55000.00000000
6889 12250.00000000
7045 20000.00000000
7046 7500.00000000
7120 24000.00000000
7169 26250.00000000
7349 107250.00000000
7395 1500.00000000
7403 1500.00000000
7405 1500.00000000
7427 17500.00000000
7435 17750.00000000
7539 441250.00000000
7546 105000.00000000
7547 126000.00000000
7712 26500.00000000
8044 200000.00000000
8131 26000.00000000
9000 15000.00000000
10351 65000.00000000