diff --git a/model/connect/MySQLStatement.php b/model/connect/MySQLStatement.php index cca9704de..f70445043 100644 --- a/model/connect/MySQLStatement.php +++ b/model/connect/MySQLStatement.php @@ -58,12 +58,13 @@ class MySQLStatement extends SS_Query { $variables[] = &$this->boundValues[$field->name]; } - call_user_func_array(array($this->statement, 'bind_result'), $variables); $this->bound = true; $this->metadata->free(); // Buffer all results $this->statement->store_result(); + + call_user_func_array(array($this->statement, 'bind_result'), $variables); } /**