title: PHP Error Boolean given instead of object, but I am giving an object
body: <p>I am having an issue with fetch assoc, it is returning an error saying it expects an object not a boolean but I checked and "results" is an object not a boolean, what could be causing this?</p>
  
  <pre><code>try{
  $someSQL = "Call SomeSproc()";
  $results = mysqli_query($connection,$someSQL);
  }catch(Exception $ex)
  {
  echo("Error: " .  __LINE__ . " " .$ex);
  }
  
  print_r($results);//says I have 14 results
  echo gettype($results);//prints object
  
  while($result = mysqli_fetch_assoc($results)) 
  {}
  </code></pre>
  
  <p>This is the error</p>
  
  <pre><code>mysqli_result Object ( [current_field] =&gt; 0 [field_count] =&gt; 1 [lengths] =&gt; [num_rows] =&gt; 14 [type] =&gt; 0 ) object
  Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in "path"
  </code></pre>