Need help troubleshooting. With 4.6 I installed video module. It works in IE but not Safari, but when I try to turn on administer/block, I get this error:
user error: 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 'DISTINCT(n.nid)) , n.title FROM node n INNER JOIN video v WHERE
query: SELECT DISTINCT (DISTINCT(n.nid)) , n.title FROM node n INNER JOIN video v WHERE n.type = 'video' AND n.status = 1 AND n.moderate = 0 ORDER by n.created DESC LIMIT 0, 10 in /home/www/obinc.us/html/drupal2/includes/database.mysql.inc on line 66.
Comments
Comment #1
fax8 commentedstrange error..
here it never appeard...
What version of video.module and drupal are you using?
The video.module is tagged on the first line with a version number.
Comment #2
sciman commentedWhat a great idea to have a version number near the top of a file! ;-) What I see is version 1.5 with a date of 2005/06/25. I'll have to go check and see if there's a newer version!
Comment #3
sciman commented4.6.3 on the drupal stuff.. new install though I've probably overdone the modules;-)
Comment #4
LukeLast commentedYou could try the new code updated here http://drupal.org/node/30943
Since you're running 4.6 and not CVS you could try using this new SQL statement.
Old:
New:
Comment #5
sciman commentedThanks. Worked like a charm. The code in the module which I found to edit was not identical, but close.. and your suggestion was perfect. Much appreciated!
Comment #6
LukeLast commentedGlad to hear it, CVS shouldn't have this problem then.
Comment #7
(not verified) commentedComment #8
(not verified) commented