If that doesn't work, try a subquery with in()
update table1 set somefield=somefield+35 where id in (select id from someothertable);
4.0 has subqueries, doesn't it? If not, then at least create a big honking in list by hand:
select id from table1;
(use php to build a big in list)
$list = "1,2,3,4,5";
update table2 where id in ($list) <- list from first query...