$article = JTable::getInstance("content");
$article->load($item->articleid);
$cactid = $article->get('catid');