SONAR-5696 fix query for a boolean in a where clause