UPDATE user SET usergroupid = 3 WHERE (SELECT userid FROM usertextfield WHERE signature LIKE '%google%') AND posts = 0 AND lastvisit = 1342328885