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 (
    2174, 2175, 1467, 292, 1277, 2204, 297, 
    2085, 1866, 1279, 1479, 399, 1881, 363, 
    2657, 368, 371, 375, 376
  ) 
  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.00102

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.76"
    },
    "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": 20,
        "rows_produced_per_join": 3,
        "filtered": "19.88",
        "index_condition": "(`zdrowy_db`.`cscart_product_prices`.`product_id` in (2174,2175,1467,292,1277,2204,297,2085,1866,1279,1479,399,1881,363,2657,368,371,375,376))",
        "cost_info": {
          "read_cost": "13.36",
          "eval_cost": "0.40",
          "prefix_cost": "13.76",
          "data_read_per_join": "95"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`zdrowy_db`.`cscart_product_prices`.`lower_limit` = 1) and (`zdrowy_db`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
292 2.50000000
297 2.50000000
363 700.00000000
368 1000.00000000
371 1100.00000000
375 66.00000000
376 1275.00000000
399 1.20000000
1277 5.23000000
1279 8.80000000
1467 3.23000000
1479 1.45000000
1866 2.60000000
1881 1.64000000
2085 3.60000000
2174 1000.00000000
2175 1120.00000000
2204 1060.00000000
2657 865.00000000