Grails

year() function not allowed in the RHS of an expression in where queries