public function execute(array $params = []) { $qry = $this->stmt->queryString; $timer = new rex_timer(); parent::execute($params); $err = $errno = ''; if ($this->hasError()) { ++self::$errors; $err = parent::getError(); $errno = parent::getErrno(); } self::$queries[] = ['rows' => $this->getRows(), 'time' => $timer->getFormattedDelta(), 'query' => $qry, 'error' => $err, 'errno' => $errno]; return $this; }