DISTINCT - look it up at www.mysql.com
i may have the query wrong also where the WHERE isn't working correctly
also do you need all the fieldnames like with the table1.* or do you only need some fields, like table1.field1, table1.field2, table2.field1, table2.field2, etc...