parameterized the friends of friends where clause