HQL not working. Gives strange Exception in console.

How could that happen?
I have this HQL: SELECT mfr.id FROM EMailToEMailFolderOrdered mfr WHERE NOT(SIZE(mfr.EMail) = MAX(mfr.orderNumber) AND MIN(mfr.orderNumber)=1) GROUP BY mfr.id
Was this page helpful?