{dede:sql sql='select * from `hubuw_tagindex`where tag in (select `tag` from `hubuw_taglist`where aid =~aid~)'}<a href="[field:tagdir/]" target="_blank">[field:tag/]</a>{/dede:sql}