Perhaps someone can tell me where I am going wrong. No matter how much I try to redo this query using "DISTINCT" I still get duplicate results. Can someone please tell me where I am going wrong?
$query = "SELECT DISTINCT table1.username, table2.username, state, height, age, activity from table1, table2 where table1.username = table2.username ORDER by activity desc";