UPDATE shipment SET state=%(state)s WHERE shipment.inbound_zone_barcode = %(inbound_zone_barcode_1)s AND shipment.id != %(id_1)s