WordPress.org

Ready to get started?Download WordPress

Forums

WordPress database error: (4 posts)

  1. ryanblank
    Member
    Posted 8 years ago #

    This error popped up out of nowhere.. i haven't tinkered with the database at all. anyone have an idea what might be causing this? error below:

    WordPress database error: [You have an error in your SQL syntax near '' at line 1]
    SELECT DISTINCT(post_id) FROM wp_post2cat WHERE category_id=

    thanks

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Have you added / edited any plugins at all ?
    Have you edited any core files at all ?
    Have you just upgraded ?
    Have you tried running /wp-admin/upgrade.php ?

  3. ryanblank
    Member
    Posted 8 years ago #

    -Have you added / edited any plugins at all ?
    i've added events calendar, but do not have it up and running yet. however, this was weeks ago and this error came up last night.

    -Have you edited any core files at all ?
    the only files i've edited as of now would be the style.css and header.php.

    -Have you just upgraded ?
    no, i installed this version about 4 months ago

    -Have you tried running /wp-admin/upgrade.php ?
    i have not

  4. ryanblank
    Member
    Posted 8 years ago #

    UPDATE:

    well.. real quick i decided to deactivate the event calendar plugin and the MySQL error went away. you hit the nail on the head there. your help is much appreciated. any idea why this plugin caused the problem? and why just now and not 4 weeks ago when i added it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags