function runQuery($query='', $error="Query error") { if ($query) $this->query = $query; $this->_runQuery($error); if (!$this->error) return; throw new PntDbError($this->error, $this->errNo); }