Better yet, if groups 1 and 8 can view any private post and comments, then scrap all the php stuff and just do this for your comments:
{if (member_group == 1) OR (member_group == 8)}
<div id="comments">
...rest of comment display code
{if:else}
You cannot view comments on private entries(or whatever you want to say)
{/if}Should save hassle. You probably won’t need to check to see if the post was private if those groups can see private posts. Headin out to lunch. Check back later for progress…
D