Closed (fixed)
Project:
Node Tasklist
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2011 at 07:37 UTC
Updated:
7 May 2011 at 18:08 UTC
Jump to comment: Most recent
The {} symbols should only be wrapped around table names, not fieldnames.
So for example:
SELECT nid FROM {node}
instead of
SELECT {nid} FROM {node}
Otherwise the query becomes SELECT prefix_nid FROM prefix_node, and the field prefix_nid doesn't exist obviously...
Comments
Comment #1
svendecabooterThis also applies to the WHERE clauses etc...
where {type} = '%s'should bewhere type = '%s'Comment #2
Anonymous (not verified) commentedFixed, thanks.