 	</table>
 </cfif>
 <cfquery name="ctcollection" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
-	select collection,collection_id from collection order by collection
+	select guid_prefix ,collection_id from collection order by guid_prefix
 </cfquery>
 <cfif listcontains(displ,"on loan")>
 	You can't use this to add loan items because some listed items are already on loan.

					#session.myAgentId#,
					sysdate,
					(
						select 
							guid || ' ' || part_name 
						from 
							flat,
							specimen_part 
						where
							flat.collection_object_id=specimen_part.derived_from_cat_item and
							specimen_part.collection_object_id=#li#

		</tr>
		<cfloop query="leaf">
		<cfquery name="specData" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select
				cataloged_item.collection_object_id,
				specimen_part.collection_object_id partID,
				scientific_name,
