SSP-2301- Fix typo in query