Reecey's Friends

Error in query: (SELECT friend_id AS user_id, user_login FROM friends, wp_users WHERE friends.user_id= AND banned=0 AND friend_id=wp_users.id) UNION (SELECT friends.user_id, user_login FROM friends, wp_users WHERE friend_id= AND banned=0 AND friends.user_id=wp_users.id) ORDER BY user_login. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND banned=0 AND friend_id=wp_users.id) UNION (SELECT friends.user_id, user_logi' at line 1