(string) 
			SELECT up.profile, up.wall, up.wall_rating, up.wall_comments, up.show_videos, up.show_video_favorites, up.show_video_history, up.show_playlists, up.show_playlist_favorites, up.show_friends, up.show_subscribers, up.show_subscriptions, up.show_activity, up.show_blogs, up.show_albums, up.show_photo_favorites, up.show_photo_history, up.show_games, up.show_game_favorites, up.show_game_history, up.allow_comment, up.allow_friends, up.allow_message
			FROM user AS u LEFT JOIN user_preferences AS up ON (up.user_id = u.user_id)
			WHERE u.user_id = ?
			AND u.status = 1
			LIMIT 1
(string) 
			SELECT up.profile, up.wall, up.wall_rating, up.wall_comments, up.show_videos, up.show_video_favorites, up.show_video_history, up.show_playlists, up.show_playlist_favorites, up.show_friends, up.show_subscribers, up.show_subscriptions, up.show_activity, up.show_blogs, up.show_albums, up.show_photo_favorites, up.show_photo_history, up.show_games, up.show_game_favorites, up.show_game_history, up.allow_comment, up.allow_friends, up.allow_message
			FROM user AS u LEFT JOIN user_preferences AS up ON (up.user_id = u.user_id)
			WHERE u.user_id = ?
			AND u.status = 1
			LIMIT 1
MySQLi query has prepared entries, but no types or variables specified!