عرض مشاركة مفردة
 
  #1  
قديم 11-07-2008, 11:01 PM
smd-sh.com smd-sh.com غير متصل
عضو
 
تاريخ التسجيل: Apr 2007
مشاركة: 53
مستوى تقييم العضوية: 18
smd-sh.com is on a distinguished road
الافتراضي مشكلة في قاعدة البيانات!هل من حل

هذه هي المشكلة...


Database error in vBulletin 3.7.2:

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, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, replycount, IF(views<=replycount, replycount+1, views) AS views,
thread.prefixid, thread.taglist, 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 = 4 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,4146,4147,4145,4144,4143,4142,4141,4132,4126,40 90,4114,4112,4091,4089,4040,4042,4015,3987,3977,39 91,2205,1122)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Column 'canview' in on clause is ambiguous
Error Number : 1052
Request Date : Friday, July 11th 2008 @ 11:26:40 PM
Error Date : Friday, July 11th 2008 @ 11:26:40 PM
Script : http://www.smd-sh.com/vb11/forumdisplay.php?f=21
Referrer : http://www.smd-sh.com/vb11/index.php

Username : ؟؟؟!
Classname : vb_database
MySQL Version : 4.1.22-standard-log






آخر تعديل بواسطة سلمان العصيمي ، 12-07-2008 الساعة 12:11 AM.