What exactly I have to do, happens when I list wp_list_categories I have to check an ID with every category ID for auction on wp_list_categories and when that statement holds true give a class.Something similar to this:

if($foo = $category_id) echo '<li class="active">Category name</li>'; Is possible?

//Short brief

I want something similar to this because I list the groups within the sidebar as well as I display the very first publish from that category, so I have to mark that category as active after i do that and that i do all this inside a page template.

I have solved it by passign a disagreement current_category