[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6151) HQL with joins in sub-select creates wrong SQL (copy of NH-2648)