Fixed HQL query.