title: How to use not equal to inside a Yii2 query
body: <p>I want to use a <code>yii2</code> query in which I want to check a not equal to condition.</p>
  <p>I tried like this but it didn't give the desired results. How do I do it?</p>
  <pre><code>$details =  MovieShows::find()
     -&gt;where(['movie_id'=&gt;$id])
     -&gt;andWhere(['location_id'=&gt;$loc_id])
     -&gt;andWhere(['cancel_date'=&gt;!$date])
     -&gt;all();
  </code></pre>