Closed (duplicate)
Project:
Node Moderation
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2004 at 04:38 UTC
Updated:
29 Nov 2004 at 23:55 UTC
At admin -> node moderation I get the following two SQL errors at the top:
<code>user error: You have an error in your SQL syntax near 'ON nmuv.mid = v.mid JOIN node n ON nmuv.gid = n.nid AND nmuv.realm = 'node_nid' ' at line 1
query: SELECT COUNT(*) FROM nmoderation_uservotes nmuv JOIN nmoderation_votes v ON nmuv.mid = v.mid JOIN node n ON nmuv.gid = n.nid AND nmuv.realm = 'node_nid' JOIN users u ON nmuv.uid = u.uid WHERE n.status = 1 in /home/virtual/watchingchina.com/webroot/htdocs/includes/database.mysql.inc on line 125.
and
<code>user error: You have an error in your SQL syntax near 'ON nmuv.mid = v.mid JOIN node n ON nmuv.gid = n.nid AND nmuv.realm = 'node_nid' ' at line 1
query: SELECT v.vote, nmuv.value, nmuv.uvid, n.nid, n.title, nmuv.uid, u.name FROM nmoderation_uservotes nmuv JOIN nmoderation_votes v ON nmuv.mid = v.mid JOIN node n ON nmuv.gid = n.nid AND nmuv.realm = 'node_nid' JOIN users u ON nmuv.uid = u.uid WHERE n.status = 1 ORDER BY title ASC LIMIT 0, 50 in /home/virtual/watchingchina.com/webroot/htdocs/includes/database.mysql.inc on line 125.
Comments
Comment #1
grohk commentedI am unable to reproduce this. Perhaps you could drop those tables and try to reinsert the nmoderation.mysql file?
Are you running Drupal 4.5? This module is not compatible with 4.4
Comment #2
grohk commentedI am unable to reproduce this. Perhaps you could drop those tables and try to reinsert the nmoderation.mysql file?
Are you running Drupal 4.5? This module is not compatible with 4.4
Comment #3
sillygwailoI'm running a CVS checkout of 4.5, and I dropped the nmoderation tables and re-added the tables via the .mysql file, and same error.
Comment #4
gkrishna commentedHi,
add the keyword 'INNER' (without quotes) before join (remember there should be space between the both.
The error will be removed.
Let me know if you still have errors
It is very to add INNER before join in the sql statement (if you find keywords like outer / left before join you need to change that sql statement)
Comment #5
gkrishna commentedHi,
add the keyword 'INNER' (without quotes) before join (remember there should be space between the both.
The error will be removed.
Let me know if you still have errors
It is very to add INNER before join in the sql statement (if you find keywords like outer / left before join you need to change that sql statement)
Comment #6
gkrishna commentedHi,
add the keyword 'INNER' (without quotes) before join (remember there should be space between the both.
The error will be removed.
Let me know if you still have errors
It is important to add INNER before join all related sql statement (if you find keywords like outer / left before join you need not change that sql statement)
Comment #7
gkrishna commentedoops, please consider my latest suggestion
Comment #8
sillygwailoJust changed the title of this bug report back to the original.
Comment #9
grohk commentedDid gkrishna's suggestion fix your problem?
Comment #10
grohk commentedhttp://drupal.org/node/11592