为什么会出现此错误?除了这个
,我的其余查询都有效 $clients = DB::select(DB::raw('
SELECT clients.*,users2.*
from clients
INNER JOIN (
SELECT
users.id,
users.userdetailsid,
usermoredetails.address,
usermoredetails.progbackgroundimage,
usermoredetails.photo_name,
usermoredetails.fname,
usermoredetails.lname,
usermoredetails.mname,
usermoredetails.mobilenumber,
usermoredetails.email,
usermoredetails.gender,
usermoredetails.civilstatus,
usermoredetails.addedby
FROM users
INNER JOIN usermoredetails ON usermoredetails.id = users.userdetailsid
LIMIT 1
) AS users2 on users2.id = clients.userid
where clients.active = 1'));
但是如果通过phpmyadmin运行查询,它可以正常工作。哪里出错了? 有人能帮助我吗?