title: Laravel query returns empty, Database returns result
body: <p>I have a very weird problem and will be grateful for some help.</p>
  <p>I have a complicated Laravel query with a WhereIn() with a big array in it. It worked fine for a very long time but now the array apparently got too big and the query returns with no result. If I try the exact same query (toSql() Laravel function) with the big array, it works fine and I have my result.</p>
  <p>On my local server, it works fine with no problems no matter the size of the whereIn array but on Live is broken so I'm thinking about a PHP or MySql setting or something similar.</p>
  <p>Do you have any idea?</p>
  <p>The query is:</p>
  <pre><code>$boardgamesCats = \App\ProductCategory::query()
              -&gt;select(['product_categories.id AS cat_id','product_categories.menu_name AS cat_name', DB::raw('COUNT(*) as products_count') ])
              -&gt;join('product_product_category','product_categories.id', '=', 'product_product_category.productCategory_id')
              -&gt;where('product_categories.status','=','active')
              -&gt;where('product_categories.parent_id', '=','1')
              -&gt;whereIn('product_product_category.product_id',$productIds)
              -&gt;groupBy('product_categories.id')
              -&gt;orderBy('ord')
              -&gt;get();
  </code></pre>
  <p>The problem is that $productIds array. Currently, there are 2005 items (ids) in it. If I put 1500 ids in it, for example, it works and returns what I need.</p>