public function debugQuery($replaced = true) {
        $q = $this->queryString;

        if (!$replaced) {
            return $q;
        }
        else {
            if (count($this->_debugBindValues) > 0) {
                return preg_replace_callback('/:([0-9a-z_]+)/i', [$this, '_debugReplaceBindValue'], $q);
            }
            else {
                return $q;
            }
        }
    }