UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '1n++nmN0g2/OppkpYhwzAeNn7MIYBBPJOp5JESG/3hE='
WHERE
key_id = 'b53b15594c24d63323df3f5ed59a01b3d41262269a7592aedbc5a4a0e6b88a05'
AND (
token = '1n++nmN0g2/OppkpYhwzAeNn7MIYBBPJOp5JESG/3hE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)