Trouble adding cfqueryparam tags
===

I'm trying to secure this code but every time I add cfqueryparam tags I get errors about parameter binding. I am certain I am setting the `cfsqltype` attribute to the right value. The last select statement is where all hell breaks loose.

	<CFQUERY name="getLatestSurveyID" datasource="#REQUEST.dsn#">
		SELECT TOP 1
			SurveyID
		FROM
			TUser_WelcomeHome
		ORDER BY
			SurveyID DESC
	</CFQUERY>


		<!--- Throw the Reasons/Subreasons into the DB --->
		<!---adding cfqueryparam tags breaks following CFIF block--->
	<CFIF ListLen(SESSION.WHSurveyStruct.reasonString, ";") gt 0>
		<CFQUERY name="insertReasons" datasource="#REQUEST.dsn#">
			INSERT INTO TWelcomeHome_Reason
			(ReasonID, SubReasonID, SurveyID)
			SELECT #sanitize(ListFirst(SESSION.WHSurveyStruct.reasonString, ";"))#, #sanitize(getLatestSurveyID.SurveyID)# <!---error occures if adding cfqueryparam tags on this line--->
			<CFLOOP list="#sanitize(ListRest(SESSION.WHSurveyStruct.reasonString, ';'))#" index="thisReason" delimiters=";">
				UNION ALL
				SELECT #sanitize(thisReason)#, #sanitize(getLatestSurveyID.SurveyID)#
			</CFLOOP>
			
		</CFQUERY>

The above code works but if I did the following change it wouldn't work:  
`<cfqueryparam value=#sanitize(getLatestSurveyID.SurveyID)# cfsqltype="cf_sql_integer">`