我正在用laravel编写一个应用程序,它显示这个错误SQLSTATE42000:语法错误或访问冲突: 1066不是唯一的表/别名:'medicals‘(SQL: select * from patientspatients_id");public function tests() return $this->belongsTo(Tests::class);
我在first_name表中有列user和last_name,这反过来又与order_item表相关,后者有instructor_id和user_id,它们都是id链接到user表。query->andFilterWhere(['like', 'concat(user.first_name," ",user.last_name)', $this->instructor]);caught Ex