public function having($query)
    {
        $clause = '';

        if (!empty($query->having)) {
            $clause = ' HAVING '.implode(' , ', $query->having);
        }

        return $clause;
    }