Support » Fixing WordPress » 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 , 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)
  • Anyone? My site has been rendered useless becuz of this

    BB, I don’t see those errors. Using FF if that makes a difference.

    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?

    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:
    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.

    It seems to be fine now; I’m using IE6 – no error message to be seen. Have you sorted it?

    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.