public function Insert($query) { //$query=str_replace('%pre%', $this->dbpre, $query); $this->db->query($this->sql->Filter($query)); return $this->db->lastInsertRowID(); }