Refer to tests from Daryl.
Bug in DRawSqlParser.findPreHavingSql().
SQL ends up with order by clause output twice and SQL exception results.
Fixed in HEAD.