public function query($sql) { if (!($this->result = $this->connection->query($sql))) { $this->showError(); } }