UPDATE users SET ip=REPLACE(ip,'192.168','10.10') where ip like '192.168.10.%'
UPDATE users SET ip=REPLACE(ip,'192.168.50','192.168.100') where ip like '192.168.50.%'