title: Command out of sync when i run stored procedure! using mysqli driver
body: <p>I am Using Mysqli Driver.</p>
  
  <p>I am getting Command out of sync when i try to run the stored procedure. I have tried </p>
  
  <pre><code>free_result();
  </code></pre>
  
  <p>this is the snippet of my code can any 1 tell me the solution?</p>
  
  <pre><code>function block()
  {
      $qry = "CALL `sp_get_codes_by_block_id`(?)";
      $result = $this-&gt;db-&gt;query($qry, $this-&gt;getBlockId());
      $temp_array = array();
      $temp_array = $result;
      $result-&gt;free_result();
      return $result-&gt;result_array();
  }
  </code></pre>