protected function appendPsForUniqueClauseTo(string &$sb, array &$params): void
    {
        if (substr_count($this->column, '?') !== 1) {
            throw new InvalidClauseException(sprintf('Could not build SQL for expression `%s` because Criteria::RAW works only with a clause containing a single question mark placeholder', $this->column));
        }