[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1643) Sub-query as function parameter - either sub-query is missed from SQL or NullPointerException raised