Remove uneeded getQuery