title: Yii addInCondition
body: <p>I've tried to get rows from table according to my conditions.
  My code:</p>
  
  <pre><code>$conditions = array(
    'id' =&gt; array ('148028','118508')
  );
  
  $criteria = new CDbCriteria();
  foreach($conditions as $key =&gt; $values){
    $criteria-&gt;addInCondition($key, $values);
  }
  if(!is_null($limit)) $criteria-&gt;limit = $limit;
  
  $rows = Item::model()-&gt;findAll($criteria);
  </code></pre>
  
  <p>These rows exist,but result is empty.
  Binding params exist in criteria object.</p>
  
  <p>Log looks like:</p>
  
  <pre><code>system.db.CDbCommand.query(SELECT * FROM `items` `t` WHERE id IN (:ycp0, :ycp1) LIMIT 2)
  </code></pre>
  
  <p>i think, that params in criteria dont bind to a query.</p>
  
  <p>Is my code right?</p>