The answer - UNION two SQL queries: SELECT email FROM registration UNION SELECT email FROM newsletter UNION will remove all the duplicates for you. If you wanted to show the duplicates as well, you would use UNION ALL.