How do you do this?
I’ve tried the following
{exp:query sql="SELECT cat_id FROM exp_category_posts WHERE entry_id = '{entry_id}' "}
{exp:query sql="SELECT cat_name FROM exp_categories WHERE cat_id='{cat_id}' "}
{cat_name}
{/exp:query}
{/exp:query}It returns the correct {cat_id} (which there are four entries) values but when {cat_id} is used to fetch the cat_name it just returns the first {cat_name} four times.
Any Ideas?