public function getQueryHelper()
    {
        if (!$this->queryHelper) {
            $this->queryHelper = new QueryHelper($this->db);

            if ($this->table) {
                $this->queryHelper->addTable($this->alias ?: $this->table, $this->table);
            }
        }

        return $this->queryHelper;
    }