1 client can have multiple processes and I would like to get in select
all processes of a certain area even if it is from the same client. However, this join
only returns only one record from a particular client.
$this->db->select('*');
$this->db->from('processo');
$this->db->join('cliente', 'processo.id_cliente = cliente.id_cliente');
$this->db->join('fases_previdencia', 'processo.id_fase = fases_previdencia.id_fases_previdencia');
$this->db->where('id_area', 4);
$query = $this->db->get()->result();
return $query;