UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '1+au+y60VgyBn9ZXW9XcNVXZo787r6DO1DlQ+bsixmI='
WHERE
key_id = '79ef11ca3ad33c149b592627039c484737dc10693ce007018156f63105d839dc'
AND (
token = '1+au+y60VgyBn9ZXW9XcNVXZo787r6DO1DlQ+bsixmI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)