Select query cannot join with another table

0 respostas
phpzendframework
C

Preciso de ajuda no Zend (se possível), está me dando esta mensagem, mas não estou vendo erro nenhum no meu select???

public function listarQuantidadeReclamacao($where = 'id>0')
{
    $select = $this->_dbTable
                    ->select()
                    ->from($this->_table, array('COUNT(*) AS quantidade'))
                    ->join('tipo_chamado', 'tipo_chamado.id = chamado.id_tipo_chamado')
                    ->where($where)
                    ->where('tipo_chamado.categoria = R');
    return $this->_dbTable->fetchRow($select)->quantidade;
}
Criado 19 de dezembro de 2016
Respostas 0
Participantes 1