#1158 Fix for multi-join in TypedQueryBuilder