EDIT: The key between these 2 table is the id # of the guest.
I want to run 2 queries from 2 different tables at the same time :
I want to create a list that a host could chek out to see every person their have ever invited. I want to show the username + location of the guest
invited
$table = query("SELECT guest FROM parties WHERE host = $uid");
$table2 = query("SELECT id, username, location FROM users WHERE id = $uid");
$uid is the current user checking out the history of the guests their invited.
parties table
event | guest | host
xmas | 12 | 14
users table
id | username | location
12 | caroline | NYC
How should I do that ?