protected function generateWhereSQL($strip = false)
        {
            $sql = $this->generateWherePartSql($strip);
            $sql .= $this->generateGroupPartSql();
            $sql .= $this->generateOrderByPartSql();
            if ($this->query->isSelect()) {
                if ($this->query->hasLimit()) {
                    $sql .= ' LIMIT ' . $this->query->getLimit();
                }
                if ($this->query->hasOffset()) {
                    $sql .= ' OFFSET ' . $this->query->getOffset();
                }
            }

            return $sql;
        }