ragazzi ho questo errore...
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax...

la parte di codice che causa l'errore è questa...
secondo voi dov'è l'errore?
grazie...

codice:
			$sql = "UPDATE " . WEBLOGS_TABLE . " SET
					template_id = 			$weblog_template,
					weblog_name = 			'" . str_replace("\'", "''", $weblog_name) . "', 
					weblog_desc = 			'" . str_replace("\'", "''", $weblog_desc) . "',
					weblog_auth = 			$weblog_auth,
					replies_auth = 			$reply_auth,
					entries_perpage = 		$num_entries,
					post_reply_text = 		'" . str_replace("\'", "''", $post_reply_label) . "',
					replies_text = 			'" . str_replace("\'", "''", $replies_label) . "',
					weblog_advanced = 		$weblog_advanced,
					mood_set = 				$weblog_mood_set,
					$reset_counter

					border_color = 			'" . str_replace("\'", "''", $border_color) . "',
					background_image = 		'" . str_replace("\'", "''", $background_image) . "',
					background_image_fixed = 	$background_image_fixed,
					tile_bg = 				'" . str_replace("\'", "''", $tile_bg) . "',
					bg_ypos = 				'" . str_replace("\'", "''", $bg_ypos) . "',
					bg_xpos = 				'" . str_replace("\'", "''", $bg_xpos) . "',
					sb_face_color = 			'" . str_replace("\'", "''", $sb_face_color) . "',
					sb_highlight_color = 		'" . str_replace("\'", "''", $sb_highlight_color) . "',
					sb_shadow_color = 		'" . str_replace("\'", "''", $sb_shadow_color) . "',
					sb_3dlight_color = 		'" . str_replace("\'", "''", $sb_3dlight_color) . "',
					sb_arrow_color = 			'" . str_replace("\'", "''", $sb_arrow_color) . "',
					sb_track_color = 			'" . str_replace("\'", "''", $sb_track_color) . "',
					sb_darkshadow_color = 		'" . str_replace("\'", "''", $sb_darkshadow_color) . "',
					font = 				$font,
					font_color = 			'" . str_replace("\'", "''", $font_color) . "',
					font_size = 			$font_size,
					normal_link_color = 		'" . str_replace("\'", "''", $normal_link_color) . "',
					normal_link_underline = 	$normal_link_underline,
					active_link_color = 		'" . str_replace("\'", "''", $active_link_color) . "',
					active_link_underline = 	$active_link_underline,
					hover_link_color = 		'" . str_replace("\'", "''", $hover_link_color) . "',
					hover_link_underline = 		$hover_link_underline,
					visited_link_color = 		'" . str_replace("\'", "''", $visited_link_color) . "',
					visited_link_underline = 	$visited_link_underline,
					weblog_title_color = 		'" . str_replace("\'", "''", $weblog_title_color) . "',
					weblog_title_font_size = 	$weblog_title_font_size,
					entry_title_color = 		'" . str_replace("\'", "''", $entry_title_color) . "',
					entry_title_font_size = 	$entry_title_font_size,
					date_time_color = 		'" . str_replace("\'", "''", $date_time_color) . "',
					date_time_font_size = 		$date_time_font_size,
					block_title_color = 		'" . str_replace("\'", "''", $block_title_color) . "',
					block_title_font_size = 	$block_title_font_size,
					block_bg_color = 			'" . str_replace("\'", "''", $block_bg_color) . "',
					block_border_color = 		'" . str_replace("\'", "''", $block_border_color) . "',
					custom_block_title = 		'" . str_replace("\'", "''", $custom_block_title) . "',
					custom_block = 			'" . str_replace("\'", "''", $custom_block) . "',
					cblock_bbcode_uid = 		'$bbcode_uid',
					show_profile_info = 		$show_profile_info,
					show_calendar = 			$show_calendar,
					show_contact_info = 		$show_contact_info,
					show_weblog_info = 		$show_weblog_info,
					show_shoutbox = 			$show_shoutbox,
					reply_in_popup = 			$reply_in_popup,
					weblog_shoutbox_desc =		$shoutbox_desc
				WHERE weblog_id = $weblog_id";