 					</cfquery>
 					
 					<cfset locality = #d.data#>
-					<cfset coll_event_id=#d.collecting_event_id#>
+					<cfset coll_event_id=#d.id#>
 					<cfset locality = replace(#locality#,"[:\(]",";")>
 					<cfset locality = replace(#locality#, "\)", "")>
 					

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

				<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.collecting_event_id id
						from 
							collecting_event,
							locality, 
