the IN clause blows up, with a null set..

find:
PHP Code

	$board_in = join(",",$boards); 

add below:
PHP Code

	// SD:Mod -- Sanity check, if no boards found. Just put in a non-existent one, 
	// guaranteed with no results, but not to break mysql
	if (!$board_in) $board_in = '0'; 

Severity: subtle, because most people will be logged in AND/OR there is at LEAST one Guest readable forum..