Avoid empty queries