$postdm=& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost'); $postdm->set_condition("threadid=200 and not parentid = 0"); $count_post+=$postdm->delete(); $postdm->has_errors(true); unset($postdm);