I have two tables:
Connections:
id user_id connection_info
------------------------------
1 1 ...
2 1 ...
3 2 ...
Lists:
id connection_id name
-----------------------
1 1 ...
2 2 ...
3 1 ...
I currently have user_id's in the lists.connection_id column. I would like to join the lists table with the connections table by connections.user_id = lists.connection_id and then replace the lists.connection_id with the corresponding id from the connections table.