UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 's1UgYy4lZ6bpdZIRN0H7LBvmJ/sWZA9QUnu2Pxg7X9s='
WHERE
key_id = '21b0c519f9b5eb06800f6fa1fb07ce579e8ef716a628e2a5315ff89380c24067'
AND (
token = 's1UgYy4lZ6bpdZIRN0H7LBvmJ/sWZA9QUnu2Pxg7X9s='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)