Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Spalte 'id' in der Feldliste ist in YII mehrdeutig

Entweder

ändern:$criteria->select = "username" to ==> $criteria->select = "u.username"

ODER

Entfernen Sie:$criteria->alias = "u" and change $criteria->select = "username" to ==> $criteria->select = "t.username" and change all left join alias 'u.field_name' to ==> 't.field_name'