query was wrong