Troubles about insering a POST with a SQL query, post_status

Why are you using direct SQL query instead of wp_insert_post()?

I see that you seem to be using non-standard database object. It is hard to guess what goes wrong if you are doing something considerably different from native mechanics.