Fixed bug for infinite loop when fetching rows with joins
Fixed bug where objects with multiple join rows was only only returning a single entry.