Title: Weird database error
Last modified: August 18, 2016

---

# Weird database error

 *  [basketball](https://wordpress.org/support/users/basketball/)
 * (@basketball)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/)
 * Recently I’ve been getting this error right at the top of my blog. Any suggestions?
   `
   Database error: [Unknown column '1none' in 'where clause'] SELECT DISTINCT * 
   FROM wp_posts WHERE 1=1none AND (post_author = 0) AND post_date_gmt <= '2004-
   10-17 05:54:59' AND (post_status = "publish") GROUP BY wp_posts.ID ORDER BY post_date
   DESC My site [http://basketball2k.com/site/](http://basketball2k.com/site/) ,
   I also have two other blogs which I havnt really worked on but they are both 
   fine. Just that blog, Ive been playing around with the design for a while.

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

 *  Thread Starter [basketball](https://wordpress.org/support/users/basketball/)
 * (@basketball)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-100985)
 * Anyone? My site has been rendered useless becuz of this
 *  [eyeno](https://wordpress.org/support/users/eyeno/)
 * (@eyeno)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-100995)
 * BB, I don’t see those errors. Using FF if that makes a difference.
 *  Thread Starter [basketball](https://wordpress.org/support/users/basketball/)
 * (@basketball)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-100998)
 * I tested on IE/FF/Opera. I went to the wordpress chatroom and had some others
   look at it. It works fine for them as well. It has some problems with cookies,
   after I cleared all my cookies the page displayed correctly once again.
    Maybe
   a new wordpress bug?
 *  [stevem](https://wordpress.org/support/users/stevem/)
 * (@stevem)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-101047)
 * This looks it comes from wp-blog-header.php. In that, a query is put together
   from various parts of the file and it should read something like:
    `SELECT DISTINCT*
   FROM wp_posts WHERE 1=1 AND` so that an extra none has got put in by mistake.
   Assuming you haven’t customised this file, the easiest thing is to replace wp-
   blog-header.php by an original version. Otherwise look at the file for the word
   none and see what it is doing there.
 *  [stevem](https://wordpress.org/support/users/stevem/)
 * (@stevem)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-101134)
 * It seems to be fine now; I’m using IE6 – no error message to be seen. Have you
   sorted it?
 *  Thread Starter [basketball](https://wordpress.org/support/users/basketball/)
 * (@basketball)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-101217)
 * no it’s still there. It just has a problem with cookies and stf, for me I get
   it very often and sometimes all my posts disappear from the frontpage and inside
   the edit in the admin panel. After I clear the cookies though everything seems
   to be in order.

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

The topic ‘Weird database error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [basketball](https://wordpress.org/support/users/basketball/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/weird-database-error/#post-101217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
