UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'wnTnbzTl+4rFSQsx0d4rDarf86csQEzemwsExrQ3hlY='
WHERE
key_id = '69b30621dc51a14aa1ed5d3ff498b76e6b801841fdfb0a3a6fd8aaeb8e876355'
AND (
token = 'wnTnbzTl+4rFSQsx0d4rDarf86csQEzemwsExrQ3hlY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)