=== modified file 'oauth_common.module'
--- oauth/oauth_common.module	2011-05-27 12:44:36 +0000
+++ oauth/oauth_common.module	2011-11-10 22:01:34 +0000
@@ -404,7 +404,7 @@
  */
 function oauth_common_get_user_provider_tokens($uid) {
   $res = db_query("SELECT t.*, pt.created, pt.changed, pt.services, pt.authorized FROM {oauth_common_token} t
-    INNER JOIN {oauth_common_provider_token} pt WHERE t.uid = %d AND t.type = %d", array(
+    INNER JOIN {oauth_common_provider_token} pt ON t.tid = pt.tid WHERE t.uid = %d AND t.type = %d", array(
       ':uid'  => $uid,
       ':type' => OAUTH_COMMON_TOKEN_TYPE_ACCESS,
     ));

