UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'mYAu+vyA/WJVKSjI5s0inDF6r7yqsZRSMsrRBl9nk0c='
WHERE
key_id = '71ff6c8871739012dbaa0a262c5576dbf26cf5cbd75b0f334e7cd759d70fc126'
AND (
token = 'mYAu+vyA/WJVKSjI5s0inDF6r7yqsZRSMsrRBl9nk0c='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)