How to reproduce
add a node view with one argument (Taxonomy:Term Id) and one field (Node:Title)
add a filter Node: Node Type for a given nodetype
add a Filter Taxonomy: Term Id (with depth) (pick a vocabulary, dropdown, Expose the filter)
add a Page display with path "testview"

as normal user:
(a) alfa.foo.com//testview/all ---OK
(b) alfa.foo.com/testview/all ?term_node_tid_depth=18094 ---OK (picked an exposed term assigned to domain alfa)

now replace term with a term id assigned to another domain beta, eg 18770
(c) alfa.foo.com/testview/all ?term_node_tid_depth=18770 ---ERROR The following error is logged:

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((n' at line 1 query: INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'domain_site') OR (na.gid = 6 AND na.realm = 'domain_id'))) LIMIT 0, 100 in /var/www/drupal/sites/all/modules/views/includes/view.inc on line 771.

My watchdog is swamped with such errors, as Google Bot (I don't know why...) keeps visiting URLs constructed as in c).

Comments

skizzo’s picture

I should add that I am not using SEO. I have set "Do not rewrite URLs", as I do need the default behaviour.
Also, I don't understand how/why Google builds links that a regular user would not encounter in normal navigation!