UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vEXDfrBrf7LxBD8MlsTAwGn3qQGHWC3WwjDJYMJsYiI='
WHERE
key_id = '11f53420a5e1a810d481a58ced69714a2048a18f443fe53cacd4465b69bb5c58'
AND (
token = 'vEXDfrBrf7LxBD8MlsTAwGn3qQGHWC3WwjDJYMJsYiI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)