hasWhere 和where同时使用报错.

浏览:2503 发布日期:2018/02/04 分类:ThinkPHP5专区 关键字: TP5 关联条件 查询 hasWhere
关联查询+本表查询,使用hasWhere 和where同时使用:$p = $this->hasWhere('category',$hasWhere)->where($where)->find();报错:1052 Column 'id' in where clause is ambiguous.
还有什么其他办法实现?
最佳答案
评论( 相关
后面还有条评论,点击查看>>