[stable28] fix: optimise getWrongShareOwnership query
#47576
Merged
getWrongShareOwnership query
#47576