UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Nya+iOCz/PPv3KVp//e8/xg/FS65RQ9P/v5LWwmWanM='
WHERE
key_id = '43bf94af887f47c70a65ea604f4b41fbf541d284dcb743493c752649c5320347'
AND (
token = 'Nya+iOCz/PPv3KVp//e8/xg/FS65RQ9P/v5LWwmWanM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)