code: protected function escapeColumnName($columnName, &$params = [])
      {
          if ($columnName instanceof Query) {
              list($sql, $params) = $this->queryBuilder->build($columnName, $params);
              return "($sql)";
          } elseif ($columnName instanceof ExpressionInterface) {
              return $this->queryBuilder->buildExpression($columnName, $params);
          } elseif (strpos($columnName, '(') === false) {
              return $this->queryBuilder->db->quoteColumnName($columnName);
          }
  
          return $columnName;
      }
docs: Prepares column name to be used in SQL statement.
  
  @param Query|ExpressionInterface|string $columnName
  @param array $params the binding parameters.
  @return string