I could cry! I've got a site that is due to be launched tomorrow and I've not noticed this problem until 5 minutes ago - and I know that it's a biggie!
If I search for a taxonomy term, or any content (apart from users) then I get the following error:
user error: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
query: SELECT DISTINCT i.sid, i.type FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN node_access na ON na.nid = n.nid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (na.grant_view = 1 AND CONCAT(na.realm, na.gid) IN ('all0','node_privacy_byrole_role1','node_privacy_byrole_user0')) AND (i.word LIKE '%ipsu%') in /home/sites/ourcomms.org/public_html/includes/database.mysql.inc on line 66.
Here are the weird differences:
1) Searches for users are fine
2) Searches for taxonomy terms are fine, unless there is a result. In that case, the result is displayed along with the error above.
3) Searches for content/nodes are fine unless there is not a result. In that case, the result is displayed along with the error above.
In all honesty, I am so knackered and I have so little time to finish this, that I have half a mind to simply turn off the error messages! Obviously, I would rather solve this instead.