Fixed typo in query