 				group_member, preferred_agent_name
 			where
 				group_member.GROUP_AGENT_ID=preferred_agent_name.agent_id and
-				MEMBER_AGENT_ID=#agent_id#
+				MEMBER_AGENT_ID=#val(agent_id)#
 			order by agent_name
 		</cfquery>
 		<cfif group_member.recordcount gt 0>

			where
				collector.collection_object_id = media_relations.related_primary_key AND
				media_relations.media_relationship='shows cataloged_item' AND
				collector.agent_id=#agent_id#
		</cfquery>
		<cfif collectormedia.c gt 0>
			<p>

			from agent_relations,preferred_agent_name
			where
			agent_relations.RELATED_AGENT_ID=preferred_agent_name.agent_id and
			agent_relations.agent_id=#val(agent_id)#
		</cfquery>
		<cfif agent_relations.recordcount gt 0>
			<p>
