السلام عليكم ،،
الرجاء المساعدة في حل المشكلة في المنتدى و هي :
Database error in vBulletin 3.6.8:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadredirect.expires
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.threadid IN (0,11700,32776,11719,52331,52369,52222,51903,51898,52142,51399,18763,52009,52010,51990,52162,51926,5 1459,51714,52169,52065,52000,51999,51566,51949,51778,51729,51842,51799,51690,49125,51744,51080,51756 ,51726,51697,51574,51452,51659,51620,51653,51570,51437,51362,50955,51356,51375,51358,51376,51428,510 95,51377,51327,51351,51339,51397,51228,51211,49228,51208,51139,51366,50747,50985,49024,51297,50249,5 0537,51123,50555,49868,50730,50889,50796,49907,51048,51124,51005,48140,49586,40948,45319,51969,51147 ,44190)
ORDER BY sticky DESC, lastpost DESC;
MySQL Error : Unknown column 'thread.lastpostid' in 'field list'
Error Number : 1054
Date : Monday, September 10th 2007 @ 09:55:43 AM
Script : http://www.XXXXX.com/4/forumdisplay.php?f=3
Referrer : http://www.ْْ.com/4/index.php
IP Address :XXXXXXXXX
Username : XXX
Classname : vb_database
أتمنى أن اجد الحل لديكم