You need to join your category table in your model
function get_where_slug($slug){
$table = $this->get_table();
$query=$this->db
->select('n.*,c.category_name,c.category_slug')
->from($table.' n')
->join('category c','n.category_id=c.category_id','LEFT')
->where('n.news_slug', $slug)
->get();
return $query;
}
And in your view you can have you category name in foreach loop as
$category_name = $row->category_name;
same for category_slug
if you want this too