SSP-2303 - fixed typo in query