UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'soRkOFOxohtjCYp8Va+jKTf5ubTx1KT84+NRSSaA4HQ='
WHERE
key_id = '3f3d089faf07f9d8d521b53bfbf19a3d003a60fa6557942986afaae5b6cc8ab8'
AND (
token = 'soRkOFOxohtjCYp8Va+jKTf5ubTx1KT84+NRSSaA4HQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)