 			<cfset go="yes">
 		</cfif>
 		<cfif isdefined("agent_role") AND len(agent_role) gt 0>
-			<cfset basWhere = "#basWhere# AND publication_agent.author_role='#agent_role#'">
-			<cfset go="yes">
-		</cfif>
+			<cfif basFrom does not contain "publication_agent">
+				<p>
+				basFrom does not contain "publication_agent"
+				</p>
+				<cfset basFrom = "#basFrom#,publication_agent">
+			</cfif>
+			<cfset basWhere = "#basWhere# AND publication.publication_id = publication_agent.publication_id
+				AND publication_agent.author_role='#agent_role#'">
+			<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">

		</cfquery>


		<p>
			now pubs
		</p>

		<cfquery name="pubs" dbtype="query">
			SELECT
				publication_id,
				full_citation,
				numCits,
				numSensu,
