Displaying the wrong number of FAQs
Describe the bug When there is content under a subcategory of a category, the number of sub-category entries is displayed as 0
To Reproduce Steps to reproduce the behavior:
- Create a category by creating a subcategory under that category.
- Add FAQ under subcategory.
- View FAQ by all categories, subcategories show 0 answers.
Expected behavior Show the number of correct answers.
Screenshots

**phpMyFAQ (please complete the following informat
- phpMyFAQ version: 3.1.4
- PHP version: 8.0.3
- Database: MySQL 5.7
- Elasticsearch: no
Desktop (please complete the following information):
- OS: Windows 10 21H1
- Browser Chrome 102
I have the same issue, I have many more than 5 FAQs.

phpMyFAQ version 3.1.4 behind Windows IIS PHP 8.0 MySQL on Ubuntu 20.04 Elasticsearch on Ubuntu 20.04
Already fixed with https://github.com/thorsten/phpMyFAQ/issues/2128
Thanks for your reply, the 3.1.5 version still has problems with me:
When the user is logged in, there is only one category where the number of answers is not 0.

When the user is not logged in, the number of answers for all categories is 0.

I tried commenting out the statements from line 407 to line 424 of CategoryHelper.php and the problem was solved.

Is there something wrong with my settings?
@nicainicainicai What permission level do you use? user or groups? If you use groups, do you have groups defined?
@thorsten
The permission level is basic.
phpMyFAQ has only one user created during installation. All categories and FAQs are created by this user.
I found the issue while rewriting the category tree functionality, so it's fixed with the upcoming 3.2 release. It's related to #2292