$DB_site->query("UPDATE ".TABLE_PREFIX."thread SET open = 0 WHERE forumid IN (X,Y,Z) AND dateline < A");