title: Stored procedure causes "Commands out of sync" on the next query
body: <p>I am running a query with a mysql stored procedure :</p>
  
  <pre><code>$AddProf_qr = mysql_query("call AddStudent('$d_Pass', '$d_Titl', '$d_Firs', '$d_Midd',  '$d_Last', '$d_Addr', '$d_City', '$d_Stat', '$d_County',  '$d_Zipc', $d_Gend, '$d_Birh', '$d_Phom', '$d_Phoh', '$d_Phoo', '$d_Email', '$d_Webs', '$d_Natn', '$d_Profsn',  '$d_Compny', '$d_Desig', $d_ProfAcc)", $this-&gt;c_remote) or die ("first call" . mysql_error($this-&gt;c_remote));
  </code></pre>
  
  <p>I am supposed to get just one result from the call : @@IDENTITY = a number;</p>
  
  <pre><code>$AP_result = mysql_fetch_array($AddProf_qr);
  $CurrentSID = $AP_result['@@IDENTITY'];
  </code></pre>
  
  <p>which works fine. but when i run another mysql update query right after this, it gives an error saying :</p>
  
  <p>Error: 2014 (CR_COMMANDS_OUT_OF_SYNC)
  Message: Commands out of sync; you can't run this command now</p>
  
  <p>i have tried inserting :</p>
  
  <pre><code>mysql_free_result($AddProf_qr);
  </code></pre>
  
  <p>but still the same. </p>
  
  <p>The MySQL call executes fine also 
  the rest of the script runs without issues the above is commented out. but they don't run at the same time. My best guess is, the call is doing something that's messing this up. </p>