Discuz! info: MySQL Query Error
User: 比翼鸟
Time: 2005-8-20 5:52pm
Script: /viewthread.php
SQL:
SELECT p.* ,b.*, m.uid, m.username, m.nickname, m.gender, m.groupid, m.adminid, m.regdate, m.lastactivity, m.postnum, m.userdigests, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.avatarwidth, m.avatarheight, m.signature, m.customstatus, m.showemail, b.mypet, m.hw,m.onlinetime, m.bank, m.money, m.bankmimi, m.bankstatus, onlinetime, m.isopendiary, m.showpet
FROM cdb_posts p
LEFT JOIN cdb_mypetdata b ON b.username=p.author
LEFT JOIN cdb_members m ON m.uid=p.authorid
left join cdb_mypetdata b on b.username=p.author WHERE p.tid='4134' ORDER BY dateline LIMIT 0, 15
Error: Not unique table/alias: 'b'
Errno.: 1066
An error report has been dispatched to our administrator. |