can you not just do a joined query and avoid most ...
# rx
t
can you not just do a joined query and avoid most of this logic?