Please update the default parameter `$state = 'all'` of the function, as well as in the calling functions (e.g. `sqlListWhere()`, `listIdsWhere()`).