public function makeQuery($pattern, $data, $prefix = null)
    {
        Compat::setCurrentOpts($this->paramsSys['compat']);
        $this->forcedConnect();
        if ($prefix === null) {
            $prefix = $this->prefix;
        }
        $templater = $this->createTemplater($pattern, $data, $prefix);
        $templater->parse();
        return $templater->getQuery();
    }