自己增加了一个自定义属性flag 里面增加了一个w$sql="SELECT * FROM ps_archives a,ps_addonarticle b where a.channel='1'  and a.id=b.aid and a.typeid in(select id from ps_arctype where topid     in(1,22,26)) and  a.flag like '%w%'  “;在数据可以查询出来、但是写在{dede:php}{/dede:php}里面就不行了,把w换成原始的属性a等、就可以查询出来、