S2 Member URL Parameters Error

I am having a problem when I use custom url variables with s2 member. When I put a link on my site:
echo "<a href='http://www.fantasydebate.com/ld-profiles/?n=$name' >$name_v1</a>"
s2 member says takes me to my "buy now" page because it says I don't have the custom capabilities. If i go to the link http://www.fantasydebate.com/ld-profiles. S2 member has no problem. Also for reference, if the link is
echo "<a href='http://www.fantasydebate.com/ld-profiles/?id=$number' >$name_v1</a>"
s2 member has no problem
Can anyone help me?
Thanks!
Jon
echo "<a href='http://www.fantasydebate.com/ld-profiles/?n=$name' >$name_v1</a>"
s2 member says takes me to my "buy now" page because it says I don't have the custom capabilities. If i go to the link http://www.fantasydebate.com/ld-profiles. S2 member has no problem. Also for reference, if the link is
echo "<a href='http://www.fantasydebate.com/ld-profiles/?id=$number' >$name_v1</a>"
s2 member has no problem
Can anyone help me?
Thanks!
Jon