Without actually giving all the details of my query: Is there a way of joing the results of two separate queries on different tables?
for example if i had a table
use temporary tables for the first two tables then use them to do the join but i guess you may have problem because there is no common attribute to join upon unless you wish to use the ids of the tables if they happen to match