private String getFriendIdsString() {
		ResultSet rs;
		StringBuilder friendsBuilder = new StringBuilder();
		try {
			rs = stmt.executeQuery("SELECT requested_by as friend_id FROM `friends` WHERE requested_for = " + id + " AND approved = 1 UNION SELECT requested_for FROM friends WHERE requested_by = " + id + " AND approved = 1");
			if (!rs.next()) return "";
			rs.beforeFirst();
			friendsBuilder.append("(");
			while (rs.next()) {
				friendsBuilder.append(rs.getInt("friend_id")).append(", ");
			}
			int len = friendsBuilder.length();
			friendsBuilder.replace(len - 2, len, ")");
			return friendsBuilder.toString();
		} catch (SQLException e) {
			e.printStackTrace();
			return "";
		}
	}