In my magento I have a problem. Categories tab of product when you edit is looking like this. I can't select subcategories from shop. I have no idea why. What could be the problem?
Store categories are:
This is only when editing saved products. When adding all is ok. Also when reindexing,
Category Flat Data is not reindexed.
Reverted my code to a previous version, when this problem wasn't present. Still the same problem. This means that the problem is in BD.