Your SQL query:
SELECT ID, post_author, post_date, post_status, post_lang, post_content, post_title, post_trackbacks, post_category, post_autobr, post_flags, post_wordcount, cat_blog_ID, post_gallery, post_position FROM posts INNER JOIN categories ON post_category = cat_ID WHERE ID = AND ( post_status IN ('published') )

MySQL said:
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 'AND ( post_status IN ('published') )' at line 1