[hibernate-issues] [Hibernate-JIRA] (HHH-8036) Envers projection max causes mysql syntax error