It would be more complicated than what pugdog and I outlined...You would have to match categories and links via the CatLinks table...it may be possible to use the new LOOP template feature in Links SQL v.2.05, but I don't gaurantee that this the answer.
Regards,
Eliot Lee
http://anthrotech.com/
Regards,
Eliot Lee
http://anthrotech.com/