WordPress database error: [Table 'mainblog.wp_post2cat' doesn't exist] SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts,
UNIX_TIMESTAMP(max(p.post_date_gmt)) + '10' AS last_post_date,
UNIX_TIMESTAMP(max(p.post_date_gmt)) AS last_post_date_gmt
FROM wp_post2cat p2c
INNER JOIN wp_posts p ON p2c.post_id=p.id
WHERE (p.post_status='publish' OR p.post_status='static')
AND p.post_date_gmt<='2007-10-10 15:08:26'
GROUP BY p2c.category_id
ORDER BY numposts DESC