Reloading the tables might not be the smartest way to tackle this but it's difficult to give a definitive answer without knowing about the logic you're trying to implement, table sizes, etc.
You could load both tables into temporary tables
Create the inner joined tables from the temporary tables
Reuse the for your second query
Drop the temporary tables