checkquery(tname)

returns true if one of the fields match the tdf