UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0bKVabZyzE+BunOXRlI/RgXDvNVNBjMQ86onQzo2OWA='
WHERE
key_id = '86aa100f2c6d02eaa9ed0f7bc5ef470a5d47b333dc0d097d9bbf480fb3a6639a'
AND (
token = '0bKVabZyzE+BunOXRlI/RgXDvNVNBjMQ86onQzo2OWA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)