database error 1064: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3]
SELECT DISTINCT * FROM posts
INNER JOIN post2cat ON (post2cat.post_id = posts.ID)
INNER JOIN categories ON (post2cat.category_id = categories.cat_ID) WHERE 1=1 AND post_date_gmt <= '2008-09-08 11:22:59' AND (post_status = "publish") AND post_status != "attachment" AND categories.blog = '35' GROUP BY posts.ID ORDER BY post_date DESC LIMIT 0,