Title: WordPress Database Error from Upgrading
Last modified: August 18, 2016

---

# WordPress Database Error from Upgrading

 *  [kikthinking](https://wordpress.org/support/users/kikthinking/)
 * (@kikthinking)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/)
 * I upgraded from 1.5 to 1.5.1.2 and this is the message I receive in the sidebar.
   Everything else works fine:
 *  WordPress database error: [Unknown column ‘cat_sort_column’ in ‘order clause’]
   
   SELECT cat_ID, cat_name, category_nicename, category_description, category_parent
   FROM wp_categories WHERE cat_ID > 0 ORDER BY cat_sort_column=name asc
 *  Warning: Invalid argument supplied for foreach() in /home2/kikidea/public_html/
   kikthinking/wp-includes/template-functions-category.php on line 309
    * No categories
 * you can check it out yourself at [http://www.kikthinking.com](http://www.kikthinking.com)
 * – kevin

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/#post-215977)
 * What is in your template in the sidebar that is causing those errors ?
 *  Thread Starter [kikthinking](https://wordpress.org/support/users/kikthinking/)
 * (@kikthinking)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/#post-216006)
 * it’s supposed to be just the main categories (i use it as a main menu section).
 *  <!– begin sidebar –>
    <div id=”side”>
    -  <li id=”categories”>
       <h2>
    -  <?php _e(‘MAIN MENU’); ?>
       </h2>
 *  -  <?php list_cats(0, ”, ‘sort_column=name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”)?
      >
 * <BR><HR>
 *  <?php if (function_exists(‘wp_theme_switcher’)) { ?>
    -  <h2>
       <?php _e(‘INTERESTING PLACES’); ?> <?php _e(‘Themes’); ?> </h2> <?php
      wp_theme_switcher(); ?>
    -  <?php } ?>
    -  <li id=”archives”>
       <h2> <?php _e(‘archive’); ?> </h2>
 *  -  <?php wp_get_archives(‘type=monthly’); ?>
 *  <?php get_links_list(); ?>
 *  <li id=”search”>
    <label for=”s”> <form id=”searchform” method=”get” action=”
   <?php bloginfo(‘url’); ?>/index.php”> <div> <input type=”text” name=”s” size=”
   18″ /> <br> <input type=”submit” id=”submit” name=”Submit” value=”Search” /> 
   </div> </form>
 *  [Cypher](https://wordpress.org/support/users/cypher/)
 * (@cypher)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/#post-216013)
 * Change your call to `list_cats` to the following:
 * `
    list_cats('optionall=0&sort_column=name&sort_order=asc')
 * This will explain more:
    [http://codex.wordpress.org/Template_Tags/wp_list_cats](http://codex.wordpress.org/Template_Tags/wp_list_cats)
 * Regards
 *  Thread Starter [kikthinking](https://wordpress.org/support/users/kikthinking/)
 * (@kikthinking)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/#post-216200)
 * fixed! thanx a lot!

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

The topic ‘WordPress Database Error from Upgrading’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [kikthinking](https://wordpress.org/support/users/kikthinking/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-database-error-from-upgrading/#post-216200)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
