protected function _cleanClause($clause) {
        $clause = trim($clause);
        while ($clause[0] === '(' && $clause[strlen($clause)-1] === ')') {
            $clause = substr($clause, 1, -1);
        }
        return $clause;
    }