Forum Moderators: coopster
One simple method would be to select all the catnames, do a fetch_array of the query results, if the user value is NOT the same as the one in the array, then keep processing each array value. Once you hit the name, return all the results before/after that value.
Is that what you were looking for or did I miss it completely? Aliasing everything is fine if you have like 3 of them.......if you end up with like 34,567 categories then it gets hard to determine what alias3567 might be when debugging.....
--Nick