 /******************************************************************************/
 ---# Adding new columns to boards...
 ALTER TABLE {$db_prefix}log_topics
-ADD COLUMN unwatched tinyint(3) NOT NULL DEFAULT '0';
+ADD COLUMN unwatched TINYINT(3) NOT NULL DEFAULT '0';
 
 UPDATE {$db_prefix}log_topics
 SET unwatched = 0;

/******************************************************************************/
---# Altering the session_id columns...
ALTER TABLE {$db_prefix}log_online
CHANGE `session` `session` varchar(64) NOT NULL DEFAULT '';

ALTER TABLE {$db_prefix}log_errors
CHANGE `session` `session` char(64) NOT NULL default '                                                                ';

ALTER TABLE {$db_prefix}sessions
CHANGE `session_id` `session_id` char(64) NOT NULL;
---#

/******************************************************************************/

		$get_pm_labels = $smcFunc['db_query']('', '
			SELECT id_pm, id_member, labels
			FROM {db_prefix}pm_recipients
			WHERE deleted = {INT:not_deleted}
				AND labels != {string:minus_one}',
			array(
				'not_deleted' => 0,
