--- ../../../../../../tmp/kde-brenda/cervisiaSB6Yec-twitter.inc-BASE	2008-12-21 12:53:25.000000000 +1300
+++ twitter.inc	2008-12-21 12:53:21.000000000 +1300
@@ -396,7 +396,7 @@
  */
 
 function twitter_get_user_accounts($uid, $only_with_passwords = FALSE) {
-  $sql = "SELECT ta.*, tu.uid, tu.password, tu.import FROM {twitter_user} tu LEFT JOIN {twitter_account} ta ON (tu.screen_name = ta.screen_name) WHERE tu.uid = %d";
+  $sql = "SELECT ta.*, tu.uid, tu.password, tu.import FROM {twitter_user} tu LEFT JOIN {twitter_account} ta ON (LOWER(tu.screen_name) = LOWER(ta.screen_name)) WHERE tu.uid = %d";
   if ($only_with_passwords) {
     $sql .= " AND tu.password IS NOT NULL";
   }
