No es 100% necesario que lo hagas con un Zend_Db_Select, si tu query es tan compleja la puedes dejar así y solamente hacer:
Código PHP:
Ver original$select = " select EXTRACT(HOUR from temp.fecha) as hora, count(*) as total
from (
select *
from ".$this->_name."
where fecha between '".$date."' AND ".$date_next."'
and root_cause like 'coldfusion.runtime.RequestTimedOutException%'
) as temp
group by hora
order by 1;";
$stmt =$this->_db->query($select);
$result = $stmt->fetchAll();
return $result;
Saludos.