今天我们在客户开发的过程中使用arclistsg标签时出现“Column 'id' in where clause is ambiguous”的错误,
解决办法如下
修改代码include\taglib\arclistsg.lib.php
else $gquery = "Select ch.addtable,listfields From `dede_arctype` tp left join `dede_channeltype` ch on ch.id=tp.channeltype where id='$typeid'";
改为
else $gquery = "Select ch.addtable,listfields From `dede_arctype` tp left join `dede_channeltype` ch on ch.id=tp.channeltype where tp.id='$typeid'";
大型站长资讯类网站! https://www.zxzz.com.cn