WordPress database error after upgrade
-
hi
Just upgraded to 2.2 and i’m having a problem with my custom template. In the sidebar – under ‘last comments’ and above ‘meta’ I am setting this 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 ” at line 1]
SELECT cat_id, cat_name FROMHere’s my sidebar code at pastebin
I’ve searched for a fix and have tried the following that didn’t work:
Try 1.
I replaced:$link_cats = $wpdb->get_results(”SELECT cat_id, cat_name FROM
$wpdb->linkcategories”);with:
$link_cats = $wpdb->get_results(”SELECT cat_id, cat_name FROM
$wpdb->categories WHERE link_count > ‘0′”);Try 2
I replaced:<?php get_links_list(); ?>
with
<?php wp_list_bookmarks(); ?>Neither of these steps removed the error.
Can anyone suggest anything else, your help is appreciated.
Thanks
The topic ‘WordPress database error after upgrade’ is closed to new replies.