Title: Error In SQL Syntax
Last modified: August 20, 2016

---

# Error In SQL Syntax

 *  [Perryb2006](https://wordpress.org/support/users/perryb2006/)
 * (@perryb2006)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/error-in-sql-syntax-1/)
 * Talking about this plugin: [http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/](http://wordpress.org/extend/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/)
 * Hi,
    After updating wordpress to 3.1.4 and later on to 3.2, the error log started
   registering following error repeatedly:
 * > 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‘)
   > WHERE p.post_date < ‘2010-06-23 21:07:11’ AND p.post_type = ‘attachment’ AND
   > p’ at line 1 for query SELECT p.* FROM wp_posts AS p INNER JOIN wp_term_relationships
   > AS tr ON p.ID = tr.object_id INNER JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id
   > = tt.term_taxonomy_id AND tt.taxonomy = ‘category’ AND tt.term_id IN () WHERE
   > p.post_date < ‘2010-06-23 21:07:11’ AND p.post_type = ‘attachment’ AND p.post_status
   > = ‘publish’ AND tt.taxonomy = ‘category’ ORDER BY p.post_date DESC LIMIT 1 
   > made by require, require_once, include, get_footer, locate_template, load_template,
   > require_once, wp_footer, do_action, call_user_func_array, upprev_box, get_adjacent_post
 * I am guessing this has something to do with plugin’s compatibility with newer
   version of wordpress.
    Please help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Grzegorz Krzyminski](https://wordpress.org/support/users/gkrzyminski/)
 * (@gkrzyminski)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-in-sql-syntax-1/#post-2166059)
 * I will check do I get similar logs, but the problem is, this is generated by 
   a standard wp function: get_adjacent_post: [http://codex.wordpress.org/Function_Reference/get_adjacent_post](http://codex.wordpress.org/Function_Reference/get_adjacent_post)
 * I would be rather suggesting to report this at some general WP thread.
 *  Thread Starter [Perryb2006](https://wordpress.org/support/users/perryb2006/)
 * (@perryb2006)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/error-in-sql-syntax-1/#post-2166060)
 * Alright. I will raise this issue in General forum. However this error disappeared
   once I disabled the plugin, so I guess either it’s is conflicting with some other
   plugin or has general compatibility issue with WordPress 3.2.
 * BTW is “upPrev Previous Post Animated Notification” compatible with wordpress
   3.2.1? I never tried it with the latest release.
 * Thanks for the help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error In SQL Syntax’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/upprev-nytimes-style-next-post-jquery-
   animated-fly-in-button_f4edf0.svg)
 * [upPrev — Next Post Slide-in Box](https://wordpress.org/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/)
 * [Active Topics](https://wordpress.org/support/plugin/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/upprev-nytimes-style-next-post-jquery-animated-fly-in-button/reviews/)

## Tags

 * [upprev-nytimes-style-next-post-jquery-animated-fly](https://wordpress.org/support/topic-tag/upprev-nytimes-style-next-post-jquery-animated-fly/)

 * 2 replies
 * 2 participants
 * Last reply from: [Perryb2006](https://wordpress.org/support/users/perryb2006/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/error-in-sql-syntax-1/#post-2166060)
 * Status: not resolved