title: Laravel 5:Call to a member function fetch_assoc() on a non-object
body: <pre><code>&lt;?php $results = DB::select('select * from insurance_policy where Id = ?', [1]);
  
                                             $row = $results-&gt;fetch_assoc();
                                              echo $row["Amount"];
                                    ?&gt;
  </code></pre>
  
  <p>Here is my code it is giving me a error:Call to a member function fetch_assoc() on a non-object. 
  I am using Laravel 5</p>