UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'CeLF8KtjRAv5zt4tmrL7d6V8+Vof4nHKR8vQCK9DAuc='
WHERE
key_id = 'c953cac582af320e94113b9c637265e885e86b70a9c91092f5ad36edf34b4600'
AND (
token = 'CeLF8KtjRAv5zt4tmrL7d6V8+Vof4nHKR8vQCK9DAuc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)