DB::query("DELETE FROM ".DB::table(‘common_mailcron‘).", ".DB::table(‘common_mailqueue‘)." USING ".DB::table(‘common_mailcron‘).", ".DB::table(‘common_mailqueue‘)." WHERE ".DB::table(‘common_mailcron‘).".touid IN ($uids) AND ".DB::table(‘common_mailcron‘).".cid=".DB::table(‘common_mailqueue‘).".cid", ‘UNBUFFERED‘);
foreach($postids as $posttableid => $posttabletids) {
$query = DB::query(‘SELECT tid, first, authorid, dateline, replycredit, invisible FROM ‘.DB::table(getposttable($posttableid)).‘ WHERE tid IN (‘.dimplode($posttabletids).‘)‘);