Adding `where` clause to joined queries

Including `relationships` in a `get` is ignoring the query, seemingly because you're ignoring in the `withJoin` sub-function.