QueryBuilder used for first join