Error Info: Array
(
[0] => 23000
[1] => 1052
[2] => Column 'company_id' in where clause is ambiguous
)
↵
出现相同的字段报错:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'company_id' in where clause is ambiguous
解决:取别名
$query = MysqlTableName::find()->alias('c');