I am creating a summary page that shows the number of members in each member group.
I tried the following but it only displays 1 as the result and there are 25 members in this group:
{exp:query sql="SELECT count(*) as active_members from exp_members where group_id=9 "}
{count}
{/exp:query}
What is the correct syntax for this?
Thanks.