 
 	$smcFunc['db_query']('', '
 		DELETE FROM {db_prefix}permissions
-		WHERE id_group = {INT:guests}
+		WHERE id_group = {int:guests}
 		AND permission IN ({array_string:illegal_perms})',
 		array(
 			'guests' => -1,


		if (!empty($inserts))
		{
			$smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'INT', 'name' => 'string-30'), $inserts, array());

			// Clear this out for our next query below
			$inserts = array();

		SELECT value
		FROM {$db_prefix}themes
		WHERE variable='allow_no_censored'
		AND id_theme = 1 OR id_theme = '$modSettings[theme_default]'
	");

	// Is it set for either "default" or the one they've set as default?
	while ($row = $smcFunc['db_fetch_assoc']($request))
	{
		if ($row['value'] == 1)
