I get this exception:
<AST>:0:0: unexpected AST node: query
right-hand operand of a binary operator was null
<AST>:0:0: unexpected end of subtree
right-hand operand of a binary operator was null
While running this HQL query
select p.nicenumber from thosenumbers p, thesenumbers w where p.datnumber - (select count(*) from thatnumbers b where b.thisnumber = '123' and b.coolnumber = w.coolnumber) > 0
Its a syntax issue since it runs perfectly in my database visualizer