public function getSql()
    {
        if (null === $this->sql) {
            if (!empty($this->query)) {
                $this->setSql($this->buildQuery());
            } else {
                return false;
            }
        }

        return $this->sql;
    }