title: adding both equal and not equal conditions in Yii
body: <pre><code>$id = Yii::app()-&gt;user-&gt;getState("logId");
  $name = Yii::app()-&gt;user-&gt;getState("username"); 
  
  $dataProvider=Disnotification::model-&gt;findAllByAttributes(array('logID' =&gt; $id,'username'!=$name));
  </code></pre>
  
  <p>How can I find records which equals to <code>$id</code> but not equals to <code>$name</code>?</p>