Fixed a typo in query