Some viewers of my gallery reported me a bug when trying to post a comment. Here is the text displayed after they clicked on th "post comment" button:
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 'ORDER BY `EXIF_date_taken` ASC' at line 1
SELECT id FROM `plg_chris_pictures` WHERE parent_album = ORDER BY `EXIF_date_taken` ASC
In addition, the comment may enventually appear, but still, this bug is annoying.
Another bug: I noticed that the character ' is displayed with a before (I'm french and so are the viewers of my gallery, and this character is very common in this language)
I'm not sure why only some users are getting the comment error, but here's the reason:
the WHERE section isn't complete... parent_album needs to = something before you can ORDER it. And I think you'll need to add parent_album to the SELECT if you use it in the WHERE.
You aren't the only one to come across this problem: http://plogger.org/forum/comments.php?DiscussionID=736
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 'ORDER BY `date_submitted` ASC' at line 1
SELECT id FROM `plogger_pictures` WHERE parent_album = ORDER BY `date_submitted` ASC
Any ideas why? My gallery is here: http://labrums.org/gallery/