title: Laravel Query Returning Null ids on the id column
body: <p>Okay I have a some code written to retrieve data from some left join in my database, after retrieving this data I use the id from each to populate a modal. The thing is it works for some of the data that has been retrieve. For when i look at the query result I notice the id's are null for some valid data an some or not</p>
  
  <pre><code> $someuser =  DB::table('users')
  -&gt;join('sometable', 'sometable.user_id', '=','users.id')
  -&gt;leftjoin('sometable', 'users.id', '=', 'skills.user_id')
  -&gt;leftjoin('sometable', 'users.id', '=','schools.user_id')
  -&gt;leftjoin('sometable', 'users.id', '=', 'languages.user_id')
  -&gt;leftjoin('sometable','users.id', '=', 'memberships.user_id')
  -&gt;leftjoin('sometable', 'users.id', '=', 'convictions.user_id')
  -&gt;leftjoin('sometable', 'users.id', '=', 'work_experiences.user_id')
  -&gt;select('users.*','sometable.name as sometablename','sometable.*')
  -&gt;where('users.first_name', '&lt;&gt;', '')-&gt;whereNotNull('users.id')
  -&gt;orderBy('sometable.updated_at', 'DESC')-&gt;groupby('users.first-name')-&gt;distinct()-&gt;paginate(100); 
  </code></pre>
  
  <p>from that, the query result looks like:</p>
  
  <pre><code>{"total":966,"per_page":100,"current_page":1,"last_page":10,"from":1,"to":100,"data":[{"id":null, etc
  </code></pre>
  
  <p>What am simple saying why is my id null </p>
  
  <p>I think its not showing me no ids over 1900 so if a user is over 1900 it showing me null</p>