fixed typo in query