UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'EpxnwDEg707Pq66BeEYgcTuN5ORc/S/iIwevjRn5nsc='
WHERE
key_id = 'b19e9bc6549dafb9be88260fdf40021a38e8b3069acbb49567bfd62dff6b43c9'
AND (
token = 'EpxnwDEg707Pq66BeEYgcTuN5ORc/S/iIwevjRn5nsc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)