title: mysqli_multi_query fails on multiple inserts
body: <p>Greetings, I'm having the following issue:</p>
  <p>When I attempt to execute several INSERT INTO queries using the mysqli_multi_query function, none of them are executed and I receive a standard &quot;You have an error in your SQL syntax&quot; error, but when I take the exact same string I passed to the function and paste into PHPMyAdmin and execute it, it works flawlessly!</p>
  <p>Here are the queries I am attempting to execute:</p>
  <pre><code>INSERT INTO production VALUES( 120, 103, 10, 0, 0 ); 
  INSERT INTO production VALUES( 120, 107, 5, 1, 0 ); 
  INSERT INTO production VALUES( 120, 106, 7, 2, 0 ); 
  INSERT INTO production VALUES( 120, 103, 20, 0, 1 );
  </code></pre>
  <p>These are in a single string, separated by a space after the semicolon.</p>
  <p>Here's what I do in the code:</p>
  <pre><code>$querytext = $queries // Get all the queries
  $query_result = mysqli_multi_query( $this-&gt;_connection, $querytext );
  
  if( mysqli_errno($this-&gt;_connection) &gt; 0)
      echo mysqli_error($this-&gt;_connection);
  
  var_dump( $querytext );
  var_dump( $query_result );
  </code></pre>
  <p>Executing this code results in:</p>
  <blockquote>
  <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO production VALUES( 120, 107, 5, 1, 0 ); INSERT INTO production VALUE' at line 1</p>
  <p>string(210) &quot;INSERT INTO production VALUES( 120, 103, 10, 0, 0 ); INSERT INTO production VALUES( 120, 107, 5, 1, 0 ); INSERT INTO production VALUES( 120, 106, 7, 2, 0 ); INSERT INTO production VALUES( 120, 103, 20, 0, 1 ); &quot;</p>
  <p>bool(false)</p>
  </blockquote>
  <p>If you would like to test this behaviour out yourself, here is the <code>production</code> table:</p>
  <pre><code>CREATE TABLE `production` (
  `colonyID` INT NOT NULL ,
  `resource_type_being_built` INT NOT NULL ,
  `amount_requested` INT NOT NULL ,
  `build_list_position` INT NOT NULL ,
  `production_number` INT NOT NULL ,
  INDEX (  `colonyID` )
  ) ENGINE = MYISAM ;
  </code></pre>
  <p>Am I overlooking something or is this simply odd behaviour?</p>