You should be able to achieve this using a JOIN, here is an example using the the code from the question
SELECT t2.field2
FROM table1 t1
JOIN table2 t2
ON t1.id = t2.id
WHERE t1.id = $someValue
What doesn't look right here is joining the tables on their Id columns. This is typically the primary key and unlikely to be used in both sides of a join.
A join is made from one table to another to reconstruct the data model. To make this a little more concrete I will change table1 to People and table2 to Addresses. The following query gets the StreetName for a particular person via the People table. In this case the People table has a column AddressId which holds the Id for this person in the Addresses table
SELECT a.StreetName
FROM People p
JOIN Addresses a
ON p.AddressId = a.id
WHERE t1.id = $someValue
You can then apply whatever mechanism PHP offers to run the query
join.