Don't use $view->param() several time, if you already have $catid