• For some strange reason only when all topics in a category are displayed, I get the following dbase error.

    WordPress database error: [No Database Selected]
    SELECT COUNT(ID) FROM main_posts LEFT JOIN main_post2cat ON (main_posts.ID = main_post2cat.post_id) WHERE 1=1 AND (category_id = 1) AND post_date_gmt <= ‘2005-06-14 02:45:59’ AND (post_status = “publish”)

    But when I select JUST one topic, it goes away. Odd thing is, I didn’t change anything, it just started happening today.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you didn’t do anything at all, then you might like to check with your host (assuming this is on a hosted server and not local) to see if they “upgraded” anything.

    Thread Starter JamesM

    (@righton)

    the only thing I did was add, then remove the following from my header.php:

    <?php @include_once($_SERVER[“DOCUMENT_ROOT”].”/shortstat/inc.stats.php”); ?>

    After installation, error wasn’t there. After I removed it, nothing… then 20 min later, error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database Error’ is closed to new replies.