title: Yii Query Builder multiple where clauses
body: <p>I noticed in my stack that my query wasn't being executed correctly as I had multiple where clauses in my querybuilder. So I looked at this post <a href="https://stackoverflow.com/questions/11562823/multiple-call-where-in-yii-query-builder">Multiple call where in Yii Query builder</a></p>
  
  <p>Applied what i'd read, but still the query doesn't combine the where statements. What am I doing wrong?</p>
  
  <pre><code>            $command = Yii::app()-&gt;db-&gt;createCommand()
          ....
          -&gt;where(array('in', 'u.id', $licenses), array('and', 'i.date_added &gt; DATE_SUB(u.date_expired, INTERVAL  30 DAY)'));
          //-&gt;where(array('and', 'i.date_added &gt; DATE_SUB(u.date_expired, INTERVAL  30 DAY)'));
          //-&gt;where(array('and', 'u.date_expired &gt; CURDATE()'))
          -&gt;group('u.id');
  </code></pre>
  
  <p>These were 3 individual statements, but I combined them as I read, but still the same result. Only 1 where clause.</p>