This function call makes no sense at all. You are using parameters as defined in function:

```php
$typesr = null, $includeChildren = false, $orderByOption = $orderByColumn, $orderDir = $orderDirect, $anyOrAll = true, $languageFilter = 'all', $stateFilter = '0,1'
```

That's not valid when calling the function