UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'EvLxA1Q34M9YIGl50A00z5uqDTW2tERpy6kuNtEvD/Y='
WHERE
key_id = '753778abc8c93f700de3da9b03fcaa0a9c8d3c0a1dffea6cae78eb023c4e71c0'
AND (
token = 'EvLxA1Q34M9YIGl50A00z5uqDTW2tERpy6kuNtEvD/Y='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)