I want to join two tables. I'm using php with mysql.
$query = "SELECT * FROM table1, table2 WHERE table1.user_id = table2.user_id";
I get the desired results from the above query. Only problem is that I'm getting two or three duplicates of every result. If I would normally get one result, I am now getting two or three. Anyone know why I'm getting duplicates?