Skip to content

Instantly share code, notes, and snippets.

@cezarsa
Created August 31, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cezarsa/3558894 to your computer and use it in GitHub Desktop.
Save cezarsa/3558894 to your computer and use it in GitHub Desktop.
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