$highlight = DB::fetch_first("SELECT expiration FROM ".DB::table('category_threadmod')." WHERE tid='$tid' AND action='highlight' ORDER BY expiration DESC LIMIT 1");
DB::query("UPDATE ".DB::table('category_sortvalue')."$sortid SET highlight='0' WHERE tid='$tid'", 'UNBUFFERED');
}
}
if($sortdata['recommend']) {
$recommend = DB::fetch_first("SELECT expiration FROM ".DB::table('category_threadmod')." WHERE tid='$tid' AND action='recommend' ORDER BY expiration DESC LIMIT 1");