protected function _renderHaving($sql)
    {
        if ($this->_parts[self::FROM] && $this->_parts[self::HAVING]) {
            $sql .= ' ' . self::SQL_HAVING . ' ' . implode(' ', $this->_parts[self::HAVING]);
        }

        return $sql;
    }
protected function _renderHaving($sql)
    {
        if ($this->_parts[self::FROM] && $this->_parts[self::HAVING]) {
            $sql .= ' ' . self::SQL_HAVING . ' ' . implode(' ', $this->_parts[self::HAVING]);
        }

        return $sql;
    }
protected function _renderHaving ( $ sql ) { if ( $ this -> _parts [ self :: FROM ] && $ this -> _parts [ self :: HAVING ] ) { $ sql .= ' ' . self :: SQL_HAVING . ' ' . implode ( ' ' , $ this -> _parts [ self :: HAVING ] ) ; } return $ sql ; }
Render HAVING clause

@param string   $sql SQL query
@return string
Render HAVING clause