title: Getting an empty result for newQuery
body: <p>I've a problem in getting the value of the query $scholars for $lt = $scholars->lat.The result is empty array for dd($lt);</p>
  
  <p>.Any help would be helpful to my school project.</p>
  
  <p>database of Scholar</p>
  
  <pre><code>id          lat                 lng                 scholar_birthday            scholar_GPA
  1           10.275667       123.8569163                 1995-12-12                  89
  2           10.2572114      123.839243                  2000-05-05                  88
  3           9.9545909       124.1368558                 2002-05-05                  89
  4           10.1208564      124.8495005                 2010-05-05                  85
  
  
  
  
          $scholars = (new Scholar)-&gt;newQuery()-&gt;select('*');
  
              $scholars-&gt;whereBetween(DB::raw('TIMESTAMPDIFF(YEAR,scholars.scholar_birthday,CURDATE())'),array($ship_age_from,$ship_age_to));     
              $scholars-&gt;whereBetween(DB::raw('scholar_GPA'),array($ship_gpa_from,$ship_gpa_to)); 
  
  
  
  
  
                  $lt = $scholars-&gt;lat;
                  $lg = $scholars-&gt;lng;
                  $str = $lt.','.$lg;
  
                  $url = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='.trim($lt).','.trim($lg).'&amp;sensor=false';
  
                  $json = @file_get_contents($url);
                  $data=json_decode($json);   
  
                  $status = $data-&gt;status;
                  $data-&gt;results[0]-&gt;formatted_address;
  
                  dd($lt);
          $scholars = $scholars-&gt;get();
  </code></pre>
  
  <p>dd Result</p>
  
  <p>Undefined property: Illuminate\Database\Eloquent\Builder::$lat</p>