Fix bug in deeply nested joins

Amazing how fucking simple a bug fix can be once you have remove
INSANITY from a 3rd party library.
TRULY FUCKING ASTONISHING!