UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VRONCk1WG+J/mviODHLR8KySxOL/LBjAzNiubp7AEaQ='
WHERE
key_id = '755a0f7a65e35c1aafbc4b9d8ebf78dbf1aa4f914d367513746e5a445b99d41b'
AND (
token = 'VRONCk1WG+J/mviODHLR8KySxOL/LBjAzNiubp7AEaQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)