/** * Perform sql query and return result. * Increase sqlCnt and save error if occured * * @param string $sql query * @return misc * @author Dmitry (dio) Levashov * @author Naoki Sawada **/ protected function query($sql) { $this->sqlCnt++; $res = $this->db->queryF($sql); if (!$res) { $this->dbError = $this->db->error; } return $res; }