185082, 0, 'php', '%message in %file on line %line.', 'a:4:{s:6:"%error";s:12:"user warning";s:8:"%message";s:821:"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 'AND na.realm = 'domain_id'))) AND (( CASE n.type  WHEN 'stormorganization' THEN ' at line 1
query: SELECT  DISTINCT(n.nid) FROM node n INNER JOIN node_comment_statistics l ON n.nid = l.nid  INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid =  AND na.realm = 'domain_id'))) AND (( CASE n.type  WHEN 'stormorganization' THEN 0   ELSE 1 END  )=1 ) AND ((n.moderate != 1)) AND (n.language ='pl' OR n.language ='' OR n.language IS NULL) AND (  n.status = 1 AND n.type = 'forum' )ORDER BY l.last_comment_timestamp DESC LIMIT 0, 5";s:5:"%file";s:93:"D:\bro\websites\pol\sites\all\modules\contributions\forumthread\forumthread.module";s:5:"%line";i:265;}', 3, '', 'http://pol/sites/all/modules/custom/diagnostics_tools/screen_of_death/screen_of_death_emergency.php', '', '127.0.0.1', 1234839499
D:\bro\websites\pol\sites\all\modules\contributions\forumthread\forumthread.module on line 265

Comments

jbrauer’s picture

Status: Active » Postponed (maintainer needs more info)

What node access modules are in use on the site? Offhand this looks like a problem with one of the queries that is being rewritten to provide appropriate node access.

jbrauer’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing because of inactivity... feel free to reopen if the issue persists.