Title: Strange &#8220;Sidebar&#8221; problem
Last modified: August 18, 2016

---

# Strange “Sidebar” problem

 *  [djh-world](https://wordpress.org/support/users/djh-world/)
 * (@djh-world)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/)
 * Hi there.
 * On my wordpress sidebar, underneath the “Archives” and “Links” sections, I have
   this horrible error underneath
 * “WordPress database error: [Table ‘blog.wp_posts’ doesn’t exist]
    SELECT DISTINCT
   YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM
   wp_posts WHERE post_date < ‘2005-07-14 19:50:00’ AND post_status = ‘publish’ 
   GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC”
 * Now this is wierd. because my WP database is called “wordpress” and I have a 
   separate DB called “blog”.
 * My wp-config.php seems to have the correct settings, yet the sidebar seems to
   be looking elsewhere!
 * This has only happened recently.
 * Any ideas?

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

 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/#post-234935)
 * What is your url?
 *  [oriecat](https://wordpress.org/support/users/oriecat/)
 * (@oriecat)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/#post-234936)
 * In your sidebar template, what comes underneath Archives and Links? What section
   is making the error?
 *  Thread Starter [djh-world](https://wordpress.org/support/users/djh-world/)
 * (@djh-world)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/#post-234938)
 * Hi there
 * My blog is currently located on a local server so it’s difficult to show you 
   the problem fully.
 * Here is a screenshot: –
 * [http://www.djh-solutions.co.uk/images/sidebar.png](http://www.djh-solutions.co.uk/images/sidebar.png)
 * And you can download the php file here: –
 * [http://www.djh-solutions.co.uk/sidebar.php](http://www.djh-solutions.co.uk/sidebar.php)
 *  Thread Starter [djh-world](https://wordpress.org/support/users/djh-world/)
 * (@djh-world)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/#post-234957)
 * Pop, I’ve tried reintalling mysql, but to no avail.
 * The problem persists.

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

The topic ‘Strange “Sidebar” problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [djh-world](https://wordpress.org/support/users/djh-world/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/strange-sidebar-problem/#post-234957)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
