UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vPfhbVWLRQCnNod1pHaGo9Jnu0/QDX62OQAC3xiUS/0='
WHERE
key_id = '0cca4f5876e96147eeb661b542118b41ca14a5933af11e2955544d500176ae00'
AND (
token = 'vPfhbVWLRQCnNod1pHaGo9Jnu0/QDX62OQAC3xiUS/0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)