Made the query return the correct users.