 				project
 			where
 				 project.project_id=project_agent.project_id and
-				 project_agent.agent_id=#agent_id#
+				 project_agent.agent_id=#val(agent_id)#
 			group by
 				project_name,
 				project.project_id

			where
				collector.collection_object_id = cataloged_item.collection_object_id AND
				cataloged_item.collection_id = collection.collection_id AND
				agent_id=#agent_id# and
				cataloged_item.collection_object_id not in (
					select coll_object_encumbrance.collection_object_id from
						coll_object_encumbrance,

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