$joined_friends = mysql_result(mysql_query("SELECT COUNT(id) FROM userfriendships WHERE user_id = '".$row_group_members['id']."' AND friend_id = IN ($locationList)'"),0);
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 'IN (2,3)' at line 1
$joined_friends = mysql_query("SELECT COUNT(id) FROM userfriendships WHERE user_id = '".$row_group_members['id']."' AND friend_id IN ($locationList)");
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.