Added getter function for getting joined objects from a query result.
Fixed edge case where passing an array with one element as a parameter caused it to be wrapped in another array unnecessarily.
Made the Query::where() throw an exception when more than two arguments are used

To highlight places where it is still being called in the old format.