title: ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause'
body: <p>I have a Laravel-Page and since i want to add a "soft delete" with the <em>active</em> field in the DB i get that error:</p>
  
  <blockquote>
    <p><em>emails.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause' (SQL: select * from <code>categories</code> where (<code>0</code> =
    active and <code>1</code> = is active) order by <code>name</code> asc)</em></p>
  </blockquote>
  
  <p>-> which causes a error 500 obviously</p>
  
  <p>and I have no plan how to fix this cause it looks like everything is fine.</p>
  
  <p>DB-Layout</p>
  
  <pre><code> Schema::create('categories', function (Blueprint $table) {
          $table-&gt;id();
          $table-&gt;string('name');
          $table-&gt;string('image')-&gt;nullable();
          $table-&gt;string('description')-&gt;nullable();
          $table-&gt;unsignedBigInteger('userID')-&gt;nullable();
          $table-&gt;string('active', 20)-&gt;default('is active');
          $table-&gt;timestamps();
      });
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>protected $table = 'categories';
  
  protected $fillable = ['id', 'name', 'image', 'description', 'userID', 'active', 'created_at', 'updated_at'];
  </code></pre>
  
  <p>Usage(as sample for all other):</p>
  
  <pre><code>$categories = DB::table('categories')
              -&gt;where(['active', 'is active'])
              -&gt;orderBy('name', 'asc')
              -&gt;get();
  </code></pre>
  
  <p>or something like this:</p>
  
  <pre><code>-&gt;where(['categoryID', $category-&gt;id], ['active', 'is active'])
  </code></pre>