Closed (fixed)
Project:
Domain
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2008 at 22:27 UTC
Updated:
9 Mar 2008 at 20:28 UTC
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 = 0 AND na.realm = 'domain_id'))) LIMIT 0, 10 in /home/tne/public_html/sfrq/includes/database.mysql.inc on line 172.
All thats happening on the page (that isn't happening elsewhere ...) is i'm displaying an image with custom pagers
-bruce
Comments
Comment #1
brucealdridge commentedupdate: still have the problem with 1.0
Comment #2
agentrickardTwo notes,
-- rc4 is no longer supported. Please upgrade to the release version 5.x.1.0.
-- This is likely not a DA error. The query (if reported correctly) here is not complete. Where is the SELECT portion of the query? If this is a custom query, it is likely malformed -- this type of error generally means that db_query() is not being used correctly.
Do you know what code or module is generating this query? (The Devel module can help with that.) Can you post the code?
Comment #3
agentrickardComment #2 still stands.
Comment #4
agentrickardI am on IRC right now.
Comment #5
brucealdridge commentedwill install devel now.
Comment #6
brucealdridge commentedthe problem was intermittent, will post if i get the error again, it might have disappeared .... which isn't helpful
Comment #7
agentrickardDo you have the "custom pager" code. I suspect this is the issue.
Comment #8
brucealdridge commentedi did.
that could be the issue
Comment #9
agentrickardClosing. This is likely an error reported by DA, but caused elsewhere.