UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+vufqHnaoLwG6YQcDAKI9K4FQnuTO6mge88fnqaAB8U='
WHERE
key_id = '9603f06d2f6bee6f2e5f6ba9c6a6d586e3d41025eb0b5682798567e7c520727c'
AND (
token = '+vufqHnaoLwG6YQcDAKI9K4FQnuTO6mge88fnqaAB8U='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)