UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ze4SxhcSWbwGfcrcBdeO+RQBMUBk2d7qEV2h4/VBQqM='
WHERE
key_id = '442f633cf2dd1285b94e009994fa71ff7816c7476e1c44e78c1b29b5060b1106'
AND (
token = 'ze4SxhcSWbwGfcrcBdeO+RQBMUBk2d7qEV2h4/VBQqM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)