$connection = $this->connection->getConnection();
$connection->query(
sprintf("UPDATE sales_order SET somecolumn = 1 WHERE entity_id = %s", $order->getId())
);
$connection = $this->connection->getConnection();
$connection->query(
sprintf("UPDATE sales_order SET somecolumn = 1 WHERE entity_id = %s", $order->getId())
);