$wheresql.=" AND thread.open<>10";
$wheresql.=" AND thread.open<>10"; $wheresql.=" AND thread.forumid NOT IN(1,2,3)";