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 'ORDER BY post_date ASC LIMIT 1' at line 1]
SELECT ID,post_title FROM wp_posts WHERE post_date >
'' AND post_date
< '2006-05-17 00:08:30' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1