SQL syntax error
-
After install the NextGEN gallery voting plugin i get SQL syntax error on my page:
WordPress database 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 ‘) AND criteria_id = ‘0’ AND ip = ‘xx.xx.xxx.xx’ ORDER BY dateadded DESC’ at line 1]
SELECT * FROM wp_nggv_votes WHERE pid IN () AND criteria_id = ‘0’ AND ip = ‘xx.xx.xxx.xx’ ORDER BY dateadded DESCI also have checked “Only allow 1 vote per person for this gallery” in gallery settings. For “Only allow 1 vote per person for this image” everything seems to be ok.
It seems like the function $picturelist = nggdb::get_gallery($image->gid); always return empty array in ngg-voting.php file.
Anybody knows this issue?
- The topic ‘SQL syntax error’ is closed to new replies.