DELETE FROM tabla1 USING tabla1, tabla1 AS vtable WHERE vtable.id > tabla1.id AND tabla1.order_number = vtable.order_number