$wheresql="1=1".$forumsql.$replysql.$datesql;
$wheresql="1=1".$forumsql.' AND forumid NOT IN (4,6,2,63,12) '.$replysql.$datesql;