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 (
    7975, 7974, 7462, 7463, 6620, 7584, 7457, 
    7439, 7438, 7437, 6943, 7568, 7569, 
    6067, 6068, 7972, 7977, 7976, 7973, 
    2886, 2966, 6386, 6773, 6810
  ) 
  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.00039

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.12",
        "index_condition": "(`dbggbern`.`cscart_product_prices`.`product_id` in (7975,7974,7462,7463,6620,7584,7457,7439,7438,7437,6943,7568,7569,6067,6068,7972,7977,7976,7973,2886,2966,6386,6773,6810))",
        "cost_info": {
          "read_cost": "16.35",
          "eval_cost": "0.46",
          "prefix_cost": "16.81",
          "data_read_per_join": "110"
        },
        "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
2886 54.90000000
2966 9.90000000
6067 9.90000000
6068 10.90000000
6386 19.90000000
6620 54.90000000
6773 34.90000000
6810 39.90000000
6943 39.90000000
7437 12.90000000
7438 12.90000000
7439 12.90000000
7457 12.90000000
7462 12.90000000
7463 12.90000000
7568 11.90000000
7569 11.90000000
7584 39.90000000
7972 11.90000000
7973 11.90000000
7974 11.90000000
7975 11.90000000
7976 11.90000000
7977 11.90000000