[resolved] SQL database error (2 posts)

  1. tin68
    Posted 9 years ago #

    I have set permalink on standard and URL to a posting is like


    If the URL points to a non existing posting like


    there is the message that this posting isn't available.

    But there is also an SQL error message:

    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-10-22 06:49:38' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1

    I have Worpress 2.0.4 and tried to unistall several plugins. But nothing changes.

    If I set the permalink option to "date and name" there is no SQL error message when the URL points to a non existing posting.

    Any ideas? Thanks.

  2. tin68
    Posted 9 years ago #

    I found the problem in the meantime. There was a mistake in the sidebar.php - a call to an additional plugin was at the wrong place.

Topic Closed

This topic has been closed to new replies.

About this Topic