Doctrine 1

Oracle Doctrine_RawSql()->count() generates illegal SQL