protected function _insertId($query) { $query = $query->export($this); ksort($query); return sha1(serialize($query)); }