SQL: SELECT p.*, m.uid, m.username, m.groupid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6,
m.extcredits7, m.extcredits8, m.email, m.gender, m.showemail, m.invisible, m.avatarshowid, m.xspacestatus, mf.nickname, mf.site,
mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals, mf.avatar, mf.avatarwidth,
mf.avatarheight, mf.sightml AS signature, mf.customstatus, tt.mypet, tt.mypetpic, tt.mypetname, tt.mypetjob, tt.mypetexp, tt.mypethp, tt.mypetmaxhp, tt.mypetsp, tt.mypetmp, tt.mypetmaxmp, tt.mypetdead, tt.openpk
FROM cdb_posts p
LEFT JOIN cdb_members m ON m.uid=p.authorid
LEFT JOIN cdb_memberfields mf ON mf.uid=m.uid
WHERE p.tid='1' AND p.invisible='0' ORDER BY dateline LIMIT 0, 20
Error: Unknown table 'tt' in field list
Errno.: 1109
什么意思啊!我加入这个,tt.mypet, tt.mypetpic, tt.mypetname, tt.mypetjob, tt.mypetexp, tt.mypethp, tt.mypetmaxhp, tt.mypetsp, tt.mypetmp, tt.mypetmaxmp, tt.mypetdead, tt.openpk就变这样了! |