 </cfquery>
 <cfset ctl=valueList(classterms.TAXON_TERM)>
 <cfset ctl_ro=replace(ctl,',order,',',phylorder,')>
-
+<cfquery name="temp" datasource="uam_god">
+	select * from  temp_new_class_temp where 1=2
+</cfquery>
 
 <cfdump var=#ctl#>
 <cfquery name="d" datasource="uam_god">

</cfquery>
<cfoutput>
	<cfloop query="d">
		<cfquery name="temp" datasource="uam_god">
			select * from  temp_new_class_temp where 1=2
		</cfquery>
		<cfdump var=#temp#>
		<cfset queryaddrow(temp,1)>


				<cfelse>
					<br>crap not hierarchical
					<cfset querysetcell(temp,"#thisTerm#",valuelist(thisDist.term,';'),1)>
					<cfset thisStatus=listappend(thisStatus,'nohierarchical')>

				</cfif>
			</cfloop>
		<cfelse>
			<cfset thisStatus=listappend(thisStatus,'funky_source_rank')>
		</cfif>

		<cfset querysetcell(temp,"status",thisStatus,1)>

		<cfquery name="nr" datasource="uam_god">
			insert into temp_new_class_temp (
			<cfloop list="#temp.columnlist#" index="t">
