You are writing a new method for retrieving the level of the category in a category tree by its ID. You have a select query:

With the Staging functionality enabled, the returned category level value changes over time while the category tree stays the same. How do you fix this issue?
Delsie
5 months agoMarvel
5 months agoDaron
5 months agoMable
5 months agoCordell
6 months agoSalley
6 months agoDortha
6 months agoFernanda
6 months agoHoa
6 months agoArtie
6 months agoLakeesha
7 months agoCory
11 months agoYoko
11 months agoMarisha
9 months agoMelissa
10 months agoValentine
10 months agoWilda
12 months agoLaurel
10 months agoTina
10 months agoTabetha
10 months agoRueben
10 months agoFernanda
11 months agoDallas
11 months agoGregoria
11 months agoPatrick
11 months agoSelma
12 months agoJusta
11 months agoCristal
11 months agoFallon
12 months agoTish
12 months agoReuben
12 months agoYaeko
1 year agoTish
1 year agoCatarina
1 year agoTamra
1 year agoCatarina
1 year ago