 			<cfset basWhere = "#basWhere# AND publication.publication_id=#publication_id#">
 			<cfset go="yes">
 		</cfif>
-		<p>
-			basFrom: #basFrom#
-		</p>
 		<cfif isdefined("collection_id") AND len(collection_id) gt 0>
 			<cfset go="yes">
 			<cfset basFrom = "#basFrom#,cataloged_item">

		</cfif>
		<cfset sql = "#sel# #frm# #whr# ORDER BY project_name">
		<cfset checkSql(sql)>


		<p>
			project:
		</p>
		<p>
			#preservesinglequotes(sql)#
		</p>
		<cfquery name="projects" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			#preservesinglequotes(sql)#
		</cfquery>

			<cfset go="yes">
		</cfif>

		<cfif isdefined("publication_type") AND len(#publication_type#) gt 0>
			<cfset basWhere = "#basWhere# AND publication.publication_type = '#publication_type#'">
			<cfset go="yes">
