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 (
    6028, 6030, 7651, 7645, 7647, 7648, 7649, 
    7646, 6026, 6027, 6858, 6857, 6855, 
    6860, 6859, 6856, 6854, 6852, 6853, 
    6850, 6851, 5503, 6760, 6762
  ) 
  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.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.51"
    },
    "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": 30,
        "rows_produced_per_join": 5,
        "filtered": "19.12",
        "index_condition": "(`dbggbern`.`cscart_product_prices`.`product_id` in (6028,6030,7651,7645,7647,7648,7649,7646,6026,6027,6858,6857,6855,6860,6859,6856,6854,6852,6853,6850,6851,5503,6760,6762))",
        "cost_info": {
          "read_cost": "18.94",
          "eval_cost": "0.57",
          "prefix_cost": "19.51",
          "data_read_per_join": "137"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`dbggbern`.`cscart_product_prices`.`lower_limit` = 1) and (`dbggbern`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
5503 29.90000000
6026 24.90000000
6027 29.90000000
6028 24.90000000
6030 24.90000000
6760 19.90000000
6762 39.90000000
6850 19.90000000
6851 19.90000000
6852 24.90000000
6853 24.90000000
6854 69.90000000
6855 19.90000000
6856 24.90000000
6857 19.90000000
6858 19.90000000
6859 24.90000000
6860 24.90000000
7645 24.90000000
7646 24.90000000
7647 24.90000000
7648 24.90000000
7649 24.90000000
7651 29.90000000