title: PHP laravel query
body: <p>How can I query all users whose last donation is more than 90 days.  This is my query but when it is executed I get an error unknown column. </p>
  
  <pre><code>      $value = Session::get('key');
        $dateToday = new DateTime();
        $data = Users::where('userType','=', 'user' )
                  -&gt;where($dateToday-&gt;format('m/d/Y') - 'lastDonation', '=', 1)
                  -&gt;whereNotIn('username', [$value ])
                  -&gt;get();
  </code></pre>