title: Laravel multiple WHERE clauses
body: <p>I have a requirement to add multiple where clauses to a Laravel SQL query.</p>
  
  <p>So far my PHP code has been:</p>
  
  <pre><code>date_default_timezone_set('America/Los_Angeles');
  
  $today = getdate();
  $year = $today['year'];
  $month = $today['mon'];
  $day = $today['mday'];
  
  $today_ = $day.'-'.$month.'-'.$year;
  $result = DB::table('task')
      -&gt;select('*')
      -&gt;where(
          ['rowstate', '&lt;&gt;', 'Ready'],
          ['DATE_FORMAT(due_date, "%d-%m-%y")', '&lt;', $today_])
      -&gt;get();
  </code></pre>
  
  <p>But above code returns:</p>
  
  <pre><code>Column not found: 1054 Unknown column '0' in 'where clause' 
  (SQL: select * from `task_tab` where (`0` = rowstate and `1` = &lt;&gt; and `2` = Ready))
  </code></pre>
  
  <p>I want to generate below SQl statement:</p>
  
  <pre><code>SELET * 
  FROM task
  WHERE rowstate &lt;&gt; 'Ready'
  AND DATE_FORMAT(due_date, "%d-%m-%y") &lt; $today
  </code></pre>