Title: sidebar error?
Last modified: August 18, 2016

---

# sidebar error?

 *  [rizl](https://wordpress.org/support/users/rizl/)
 * (@rizl)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-error-2/)
 * Hi! i wonder if anyone can help me out here, knowing ive been working on this
   error in my sidebar all night.
    the problem si that my links to other site´s 
   dont show up and instead of that i´m getting te next error on my website
 * > **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
 * any ideas how to solve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-error-2/#post-541002)
 * Please review the codex as the names of the category tags have changed.
 * [Template_Tags](http://codex.wordpress.org/Template_Tags)
 *  Thread Starter [rizl](https://wordpress.org/support/users/rizl/)
 * (@rizl)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-error-2/#post-541065)
 * thanx for youre reply. “i tried about everything” and this dousnt seem to work
   aswell…
 * here is some of the code where it seems to go wrong in my sidebar.php…
 * >  <div class=”right_content”>
   >  <?php $link_cats = $wpdb->get_results(“SELECT
   > cat_id, cat_name FROM $wpdb->linkcategories”); foreach ($link_cats as $link_cat){?
   > >
   > <div class=”right_header”><?php echo $link_cat->cat_name; ?></div>
   >  <div class
   > =”right_content”> <ul style=”margin-left:20″> <?php get_links($link_cat->cat_id,‘
   > <li class=”li3″>’, ”, ‘‘, FALSE, ‘id’, TRUE, TRUE, -1, TRUE); ?>
   >  </div>
   >  <br>
 * hope someone can help me out with this,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘sidebar error?’ is closed to new replies.

## Tags

 * [links](https://wordpress.org/support/topic-tag/links/)
 * [sidebar.php](https://wordpress.org/support/topic-tag/sidebar-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [rizl](https://wordpress.org/support/users/rizl/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-error-2/#post-541065)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
