本帖最后由 quba 于 2009-10-18 16:10 编辑
论坛人气不是很旺,为了聚拢人气,于是增加了论坛帖子的浏览次数,将viewthead.php下的代码views=views+1改为views=views+10,修改后,浏览论坛帖子时,显示下面的代码?
Discuz! info: MySQL Query Error
User: admin
Time: 2009-10-18 12:41am
Script: /viewthread.php
SQL: SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.threads, 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, mf.nickname, mf.site,
mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals,
mf.sightml AS signature, mf.customstatus, mf.spacename
FROM [Table]posts p
LEFT JOIN [Table]members m ON m.uid=p.authorid
LEFT JOIN [Table]memberfields mf ON mf.uid=m.uid
WHERE p.tid='1' AND p.invisible='0' ORDER BY dateline LIMIT 0, 10
Error: Unknown column 'm.threads' in 'field list'
Errno.: 1054
Similar error report has been dispatched to administrator before.
哪位高人指点下,该怎么解决,尽量详细点(我是新手),谢谢! |