[hibernate-issues] [JIRA] (HHH-16642) Treated join in subquery results in invalid SQL