title: Why is select count distinct not working in yii?
body: <p>can someone tell me why is this not working, what i mean is that the select distinct is not working its not counting properly ; </p>
  
  <pre><code>$count_participants = BridgeMeeting::Model()-&gt;with('idUserRegistry')-&gt;count(array(
      'condition' =&gt; 'id_meeting=:id_meeting',
      'select' =&gt; 'id_user_registry',
      'distinct' =&gt; true,
      'params' =&gt; array(
          "id_meeting" =&gt; $data-&gt;id_meeting
      ),
          ));
  </code></pre>