$criteria->addCondition('id in (SELECT attivita_id FROM attivita2marche WHERE marche_id IN (SELECT id FROM marche WHERE nome like :nome_marche))');
$criteria->params[':nome_marche']='%'.$this->nome_marche.'%'