How do I join something like this together:
$query = ("SELECT * FROM profiles,follow
WHERE follow.friend ='$user'
AND follow.user !='$user'
AND profiles.user1 =follow.user
ORDER BY id DESC limit 20");
or
("SELECT * FROM profiles WHERE user1='$user'");
I need the query to display two different things how do I do that.
Use UNION: