 	<td>
 		<div>#higher_geog#</div>
 	</td>
-	<cfif listfind(hasDataFlds,'CONTINENT_OCEAN')>
-		<a href="geography.cfm?CONTINENT_OCEAN=#CONTINENT_OCEAN#">#CONTINENT_OCEAN#</a>
+	<cfif listfindnocase(hasDataFlds,'CONTINENT_OCEAN')>
+		<td><a href="geography.cfm?CONTINENT_OCEAN=#CONTINENT_OCEAN#">#CONTINENT_OCEAN#</a></td>
 	</cfif>
 	<!----
 	<td>

	<cfabort>
</cfif>
<script src="/includes/sorttable.js"></script>
<cfset hasDataFlds="CONTINENT_OCEAN,ISLAND">
<cfloop list="#hasDataFlds#" index="f">
	<br>#f#
	<cfquery name="d" dbtype="query">

	<tr>
		<th>Links</th>
		<th>Higher Geog</th>
		<cfif listfindnocase(hasDataFlds,'CONTINENT_OCEAN')>
			<th>Continent</th>
		</cfif>
		<th>Country</th>
		<th>State</th>
		<th>County</th>
		<cfif listfindnocase(hasDataFlds,'Quad')>
			<th>Quad</th>
		</cfif>
		<th>Feature</th>
		<th>IslandGroup</th>
		<cfif listfindnocase(hasDataFlds,'Island')>
