 				<cfif len(locality) eq 0 && coll_obj_id gt 0>
 					<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,cfid)#">
 						select 
-							higher_geog || ': ' || spec_locality || ' (' || verbatim_date || ')' data , collecting_event_id
+							higher_geog || ': ' || spec_locality || ' (' || verbatim_date || ')' data , collecting_event.collecting_event_id id
 						from 
 							collecting_event,
 							locality, 

	<cfset rownum=1>
	<cfif url.offset is 0><cfset url.offset=1></cfif>
<table>
	<!-- Header -->
	<tr>
		<td>Media Preview</td>
		<td>Mime Type</td>
		<td>Details</td>
		<td>Download</td>
		<td>Map</td>
		<td>Related Keywords</td>
	</tr>
<cfloop query="findIDs" startrow="#URL.offset#" endrow="#limit#">
	<cfquery name="labels_raw"  datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,cfid)#">

					</a>
				</cfif>
			</td>
			<td align="middle">							
				<div style="font-size:small;max-width:60em;margin-left:3em;border:1px solid black;padding:2px;">
						<strong>Keywords:</strong> #kw#
				</div>
