 								<tr>
 									<th>ConstraintName</th>
 									<th>OriginatesFrom</th>
-									<th>References</th>
+									<th>ReferencesConstraint</th>
+									<th>ReferencesColumn</th>
 								</tr>
-								<cfloop query="trefs">
+								<cfloop query="trels">
 									<tr>
 										<td>
 											#C_CONSTRAINT_NAME#

					<th>References</th>
				</tr>
				<cfloop query="tcols">
					<cfquery name="trefs" dbtype="query">
						select * from trels where o_column_name = '#column_name#'
					</cfquery>
					<cfquery name="trefsback" dbtype="query">
						select * from trels where r_table_name='#tbl#' and r_column_name = '#column_name#'
					</cfquery>

					<tr>
						<td>#column_name#</td>

										<td>
											#r_table_name#.#r_column_name#
										</td>
										<td>#r_constraint_name#</td>
									</tr>
								</cfloop>
							</table>
						</td>
					</tr>
				</cfloop>
			</table>
		</cfif>

		<!----
