$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit]; $wheresql="1=1".$forumsql.$datesql;
$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit]; $wheresql="1=1".$forumsql.' AND forumid NOT IN (3,6,7,23) '.$datesql;