in the latest versions of CiviCRM (5.13.4 and 5.14) we can no longer search for contacts that are not included in any group through the search builder!

First (at least until version 5.12) with this search:

enter image description here

we obtained "all contacts that did not belong to any group", while now we give a a SINTAX ERROR.

How to solve?

1 Answer 1


This is a recent bug introduced by the fix to a different search issue, issue #726.

A permanent fix will need to be found that doesn't break either scenario. However, to resolve your immediate issue, you can open file CRM/Contact/BAO/Query.php and delete line 3037.

I've reported this issue as #1048.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.