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 (
    7047, 6876, 7028, 7025, 6893, 6878, 7037, 
    7045, 6871, 6889, 7030, 8455, 5427, 
    10506, 10493, 10495, 10501, 10498, 
    10502, 10511, 10513, 10496, 10500, 
    10494
  ) 
  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.00127

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.96"
    },
    "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": 51,
        "rows_produced_per_join": 10,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7047,6876,7028,7025,6893,6878,7037,7045,6871,6889,7030,8455,5427,10506,10493,10495,10501,10498,10502,10511,10513,10496,10500,10494))",
        "cost_info": {
          "read_cost": "27.94",
          "eval_cost": "1.02",
          "prefix_cost": "28.96",
          "data_read_per_join": "244"
        },
        "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
5427 75000.00000000
6871 55000.00000000
6876 50000.00000000
6878 5500.00000000
6889 12250.00000000
6893 13250.00000000
7025 22250.00000000
7028 14750.00000000
7030 14000.00000000
7037 13250.00000000
7045 20000.00000000
7047 24000.00000000
8455 20250.00000000
10493 66750.00000000
10494 66750.00000000
10495 66750.00000000
10496 66750.00000000
10498 66750.00000000
10500 66750.00000000
10501 49750.00000000
10502 66750.00000000
10506 66750.00000000
10511 63750.00000000
10513 60000.00000000