Tree shows only first items (ex 1.1.1.1.1) after upgrade

Hello,

After upgrade of CF and mysql to latest version render_sql for tree is rendering only first branch.

For example, let say we have a tree with three top categories, three sub categories in each and three sub-sub categories in each.

Tree renders only items:
1 (first top level)
1.1 (first sub-item of top level’s first)
1.1.1 (first sub-sub-item of first’s sub-item of top level’s first)

Others are not rendered.

What can be the reason?

Thanks