title: Laravel : Syntax error or access violation: 1055 Error
body: <p>I want to use WhereIn and Groupby in the same query to fetch Result.</p>
  <p>I've tried this:</p>
  <pre><code>$loadids=explode(&quot;#@*&quot;,$reciptdet-&gt;loading_id);
  $loadingdatas=DB::table('loading')-&gt;groupBy('vehicle_no')-&gt;whereIn('id',$loadids)-&gt;get();
  </code></pre>
  <p>But I got this error message:</p>
  <blockquote>
  <p>SQLSTATE[42000]: Syntax error or access violation: 1055 'sbrtpt.loading.id' isn't in GROUP BY (SQL: select * from loading where id in (14, 15, 16) group by vehicle_no)</p>
  </blockquote>