• josephus

    (@josephus)


    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

Viewing 1 replies (of 1 total)
  • Thread Starter josephus

    (@josephus)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress database error – SQL syntax’ is closed to new replies.