title: How to set multiple condition on criteria for CActiveDataProvider?
body: <p>I'm on project of <code>YII</code>. I have <code>Production</code> table, where I have <code>category_id</code> and <code>brand_id</code> two column. Now what I want to do is, just use the <code>CActiveDataProvider</code> to fetch those particular rows to the <code>$dataprovider</code> which has those <code>category_id</code> and <code>brand_id</code> in my <code>$cat</code> and <code>$brnd</code> array. I made it for <code>category_id</code>, but I am not getting any thing how to put both of them on the condition. Here is my code, please help.</p>
  
  <pre><code>$dataProvider=new CActiveDataProvider(Production::model(),
        array(
       'criteria'=&gt;array('condition' =&gt; 'category_id IN ('.implode(',',$cat).')'),
       'pagination' =&gt; array('pageSize'=&gt;Yii::app()-&gt;params['productsPerPage']),
      )
  );
  </code></pre>