Title: Plain Vanilla theme SQL prob
Last modified: August 18, 2016

---

# Plain Vanilla theme SQL prob

 *  [dunefield](https://wordpress.org/support/users/dunefield/)
 * (@dunefield)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/plain-vanilla-theme-sql-prob/)
 * So I finally upgraded to WP 2.1 using the Plain Vanilla theme.
 * Now I get an error on the front page
 * [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 tried replacing the get_links with “wp_list_bookmarks(); ?>” however I still
   got the same error. This is the code.
 * <!– start links –>
    <?php /* If this is the frontpage */ if ( is_home() || is_page()){?
   >
 *  <?php
    $link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->
   linkcategories”); foreach ($link_cats as $link_cat) { ?> <h3><?php echo $link_cat-
   >cat_name; ?></h3>
    -  <?php wp_get_links($link_cat->cat_id); ?>
 *  <?php } ?>
 * <!– end links –>
 * Anyone know how to fix this?

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

 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/plain-vanilla-theme-sql-prob/#post-529454)
 * I would suggest searching the forums. It’s been much discussed. You may also 
   want to contact the theme designer and see if he or she has updated their theme
   for wordpress 2.1.
 *  Thread Starter [dunefield](https://wordpress.org/support/users/dunefield/)
 * (@dunefield)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/plain-vanilla-theme-sql-prob/#post-529488)
 * Yeah I did a search however nothing I’ve read so far has fixed the issue.

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

The topic ‘Plain Vanilla theme SQL prob’ is closed to new replies.

## Tags

 * [plain](https://wordpress.org/support/topic-tag/plain/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dunefield](https://wordpress.org/support/users/dunefield/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/plain-vanilla-theme-sql-prob/#post-529488)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
