MySQL ERROR:
Error Number: 1064
Description: 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 '' at line 11
Query: SELECT title,
field_id_34 as dates,
field_id_35 as venue,
field_id_51 as sponsor,
field_id_52 as holder,
field_id_53 as footer,
field_id_54 as doubles
FROM exp_weblog_data d
RIGHT JOIN exp_weblog_titles t ON t.entry_id=d.entry_id
WHERE
t.entry_id=