title: 1390 Prepared statement contains too many placeholders using Laravel 5.6
body: <p><strong>Getting following error</strong></p>
  
  <p>SQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeholders</p>
  
  <p><strong>My query has become due to data in the table recently</strong></p>
  
  <pre><code>SELECT
    *
  FROM
    table
  WHERE col1 = 'some-val'
    AND col2 NOT IN ('va1', 'val2', 80k values... )
  </code></pre>
  
  <p><em>I am using Laravel 5.6</em> </p>
  
  <pre><code>$data_will_be_skipped = OtherModel::select('code')
          -&gt;where('col1', 0)
          -&gt;orWhere('col2', 1)
          -&gt;groupBy('col3')
          -&gt;pluck('col3')-&gt;toArray();
  </code></pre>
  
  <p>$data_will_be_skipped is now approx <strong>80k</strong> arrays</p>
  
  <pre><code>Model::where('col1', 'some-val')-&gt;whereNotIn('col2', $data_will_be_skipped)-&gt;get();
  </code></pre>