MySQL & MariaDB error 4019 ER_CANT_SET_SQL_AFTER_OR_BEFORE_GTIDS_WITH_ANONYMOUS_TO_GTID
Same number, two different errors. 4019 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLThe SQL_AFTER_GTIDS or SQL_BEFORE_GTIDS clauses for START REPLICA cannot be used when the replication channel is configured with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL|<UUID>.
MariaDBRANGE-type frame requires ORDER BY clause with single sort key