Filter by attribute in the page List child

Permalink
Hi everybody,

Please, how to make a filter in the child for a specific pageList, I do this but I have this error message :

Call to undefined method Concrete\Core\Page\Page::filterByAttribute()

$pageList = new PageList(); 
  $pageList = Page::getByID(376); //error in this line
  $pageList->filterByAttribute('Region', 'Mauricie');
  $pageList->filter(false, '(ak_exclude_page_list = 0 or ak_exclude_page_list is null)');
  $pageList = $pageList->getResults();



@thanks