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 'DISTINCT(c.nid), c.subject, c.cid, c.timestamp, c.comment, n.title ' at line 1 query: SELECT c.uid, c.name, DISTINCT(c.nid), c.subject, c.cid, c.timestamp, c.comment, n.title FROM swinger08node n INNER JOIN swinger08comments c ON n.nid = c.nid WHERE n.status = 1 AND c.status = 0 AND n.nid = 45 ORDER BY c.timestamp DESC LIMIT 0, 5 in /home/content/p/a/t/patrick74/html/swinger08/includes/database.mysql.inc on line 172.
Comments
Comment #1
konsumer commentedMy script just runs your SQL. The error says that you have an error in your SQL.
Why do you have SELECTs in your backup SQL, anyway?