title: A.* isn't in GROUP BY with left join on laravel query builder
body: <pre><code>   $search_alls=
      DB::table('a16s as A')
      -&gt;select('A.id')
      // -&gt;select('A.*')
      -&gt;addSelect(DB::raw('SUM(CASE WHEN B.approve = 1 ELSE 0 END) as Yshow'))
      -&gt;leftjoin('a16s_likes as B', function($join) {
          $join-&gt;on('A.id', '=', 'B.p_id');
          })
      -&gt;groupBy('A.id')
      -&gt;get();
  </code></pre>
  
  <p>when I use above select('A.id') is work well.</p>
  
  <p>But when I use  select('A.*') to select all A cloumn 
  I got the error</p>
  
  <pre><code>SQLSTATE[42000]: Syntax error or access violation: 1055 'employee.A.name' isn't in GROUP BY 
  </code></pre>
  
  <p>PS:employee is my DB name
  The column on A table is   </p>
  
  <pre><code>id name ....
  1  john
  2  mary
  3  susan
  </code></pre>
  
  <p>How can I select all column by the leftjoin?
  the column A.id is one to many relationship to the B.p_id column.</p>