made a mess of a join to check for deep-recursion and validate against it.  Keep an eye on this query - it's fast now, but maybe it won't be with more data