diff --git a/MysqliDb.php b/MysqliDb.php index e264f7a9..02cf2ec9 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -1835,7 +1835,7 @@ protected function _buildInsertQuery($tableData) $dataColumns = array_keys($tableData); if ($isInsert) { if (isset ($dataColumns[0])) - $this->_query .= ' (`' . implode($dataColumns, '`, `') . '`) '; + $this->_query .= ' (`' . implode('`, `', $dataColumns) . '`) '; $this->_query .= ' VALUES ('; } else { $this->_query .= " SET ";