Created
August 31, 2012 20:58
-
-
Save cezarsa/3558894 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT uid, first_name, last_name, username, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1 ORDER BY mutual_friend_count DESC LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment