UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+86g5WKzTQFXRQadaZNYnItnSlWjV+jvMMo6rDjyDCw='
WHERE
key_id = '436cd28ced0d2a0f61609bed7f3177cd6f4ab2546355fbee8599dc2e516f5aca'
AND (
token = '+86g5WKzTQFXRQadaZNYnItnSlWjV+jvMMo6rDjyDCw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)