Forums

WordPress database error - SQL syntax (2 posts)

  1. josephus
    Member
    Posted 5 years ago #

    Hello. I have upgraded to 2.1 and I am getting an error where my links and blogroll are supposed to be.
    MYSQL version 4.1.21-standard-log
    PHP version 4.4.4
    Here's the error:
    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 'ASC' at line 1]
    SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY cat_id- ASC

    Anyone know what I can do? I don't even know which file contains this code.
    Thanks. Joe

  2. josephus
    Member
    Posted 5 years ago #

    Two hours later: I fixed it by checking it against the sidebar file from another theme.
    I replaced this:
    <?php get_links_list('id-'); ?>
    with this:
    <?php get_links_list(); ?>
    Then the error went away and all my links came back.
    Joe

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags