Added ability to join multiple times to AutoQuery, plus test.