SELECT 
  ushop_product_prices.product_id, 
  MIN(
    IF(
      ushop_product_prices.percentage_discount = 0, 
      ushop_product_prices.price, 
      ushop_product_prices.price - (
        ushop_product_prices.price * ushop_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  ushop_product_prices 
WHERE 
  ushop_product_prices.product_id IN (
    291, 299, 311, 361, 295, 325, 360, 312, 
    318, 315, 362, 296, 363, 548, 322
  ) 
  AND ushop_product_prices.lower_limit = 1 
  AND ushop_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  ushop_product_prices.product_id

Query time 0.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "10.51"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "ushop_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": 15,
        "rows_produced_per_join": 2,
        "filtered": "19.85",
        "index_condition": "(`marketplace`.`ushop_product_prices`.`product_id` in (291,299,311,361,295,325,360,312,318,315,362,296,363,548,322))",
        "cost_info": {
          "read_cost": "10.21",
          "eval_cost": "0.30",
          "prefix_cost": "10.51",
          "data_read_per_join": "71"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`marketplace`.`ushop_product_prices`.`lower_limit` = 1) and (`marketplace`.`ushop_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
291 55.00000000
295 30.00000000
296 30.00000000
299 150.00000000
311 55.00000000
312 100.00000000
315 32.00000000
318 25.00000000
322 16.97000000
325 35.00000000
360 100.00000000
361 96.00000000
362 55.00000000
363 49.50000000
548 120.00000000