• I upgraded to wordpress 2.1 last night and received the following error message where my blogroll links usually are:

    “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 FROM”

    I’ve read a couple other posts but am so confused.

    Please help quickly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I think the problem is in tiga.php:

    function tiga_links_widget($args)
    {
    global $wpdb;
    extract($args);
    $before_title_loc = ‘<li class=”left-wp-widget %2$s”>’.$before_title;
    $after_title_loc = $after_title.’

      ‘;
      $after_widget_loc =’

    ‘.$after_widget;
    /* Links from the ‘Links Manager’ */
    $link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->categories WHERE link_count>0”);

    $link_cat =$link_cats[1];
    //{
    $toto= “”;//$link_cat->cat_id;
    echo $before_title_loc.$after_title_loc;
    $book_cur_chrisos = ‘orderby=rand&categorize=1&category=’.$toto.’&category_orderby=id&show_images=0&show_description=0&hide_invisible=1′;
    //before=&after=<br>&
    //$book_cur_chrisos = ‘category=’.$toto;//.’&before=<tata>&after=</tata>’;
    //&title_before=’.$before_title_loc.’&title_after=’.$after_title_loc
    //echo $book_cur_chrisos;
    //wp_list_bookmarks(‘before=<span>&after=</span>&show_images=1&show_description=0&orderby=url’);
    wp_list_bookmarks($book_cur_chrisos);
    echo $after_widget_loc;
    //}
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blogroll Problems on WP 2.1/Tiga Theme’ is closed to new replies.