Im not great with Mysql or SQL in that matter so im sure someone will out smart me here
mysql_query("SELECT table1.feild1,table2.feild1 FROM table1, table2 WHERE location=33 AND table1.feild1=table2.feild1");
Now that wont work most likely but its something like what i do. Now dont doubt if someone does better.