AI-718 hotfix for sql error in filter population query involving dates