Error: Your "id" field references a column "user"."id", but the table "user" is not part of the query! Did you forget to join it?getTableColumns function to retrieve all the columns from the subquery (which should be the same as the user table) along with an extra column for distance.getTableColumns(sq) is giving me type errors, so that doesn't seem to be the solution.