That probably would work, only you have to change it to:
(templatesetid=-1 OR tempatesetid='10' OR templatesetid='$templatesetid'))
In that particular order, in order to let the inheritance happen in the right order (lot of orders)
but I'm not 100% sure. There is another disadvantage: The result of the query can be far more bigger now, resulting in a slight(?) slowdown...
|