Adding `where` clause to joined queries

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