Closed (fixed)
Project:
Annotate
Version:
5.x-1.x-dev
Component:
annotate (private)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2008 at 20:33 UTC
Updated:
17 Feb 2008 at 10:33 UTC
I tried both beta4 and the dev version and I get:
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(n.nid), a.visibility, a.note, a.timestamp FROM annotations a INNER JOIN' at line 1 query: SELECT n.title, u.name, u.uid, DISTINCT(n.nid), a.visibility, a.note, a.timestamp FROM annotations a INNER JOIN node n ON a.nid= n.nid INNER JOIN users u ON a.uid=u.uid WHERE a.nid = 14 AND 1=1
I have MySQL 4.1.22 on that server and I think this might be the problem.
Comments
Comment #1
clemens.tolboomCould you try to change the annotate.module code by placing "n.nid" in front of the string.
Check both functions
- _annotate_list_by_user
- _annotate_list_by_node
I do not have a mysql 4.x version around. My guess is that DISTINCT must be the first part of the SQL statement. If not can you test the demo site then. Maybe I overlooked something.
Regards,
Clemens
Comment #2
clemens.tolboomComment #3
clemens.tolboomUnfortunately no user feedback received.