protected function _insertId($query) { $row = $this->_execute('SELECT LAST_INSERT_ID() AS insertID')->current(); return $row[0] && $row[0] !== '0' ? $row[0] : null; }