mag: what would help us in telling you what your query should be would be to post the output of "explain table" for both tables you need to get data from, tell us which data you need to get out, and under which condition. Then we'll be able to write a simple query string that will perform that
