LPS-42551

Fix for proper CONTAINS query generation