Saving to the site_posts table

Hi,

I am trying to create an entry in the site_posts table when creating a new post from a front-end form but it is not saving as expected. Can anyone help? Here is my code:

Thanks,
Nick

`$data = array(
'post_content' => $wpdb->escape($posted['details'])
, 'post_title' => $wpdb->escape($posted['job_title'])
, 'post_status' => $status
, 'post_author' => $user_ID
, 'post_type' => 'job_listing'
);
$post_id = wp_insert_post($data);

//UPDATE THE WPMU DEV SITEWIDE POST INDEXER
if(function_exists('post_indexer_post_insert_update')) {
post_indexer_post_insert_update($post_id);
}