اخواني حصل لي مشكلة في المنتدى فجاة وصار مايفتح يطلع لي مشكلة في قاعدة البينات وهذي هي

كود PHP:
Invalid SQL:

    
SELECT
        thread
.threadidthread.titlethread.lastpostthread.forumidthread.replycountthread.lastposterthread.dateline, IF(views<=replycountreplycount+1views) AS viewsthread.visibleuser.usernameuser.useriduser.usergroupid, IF(displaygroupid=0user.usergroupiddisplaygroupid) AS displaygroupid
        
NOT ISNULL(deletionlog.primaryid) AS isdeleteddeletionlog.userid AS del_useriddeletionlog.username AS del_usernamedeletionlog.reason AS del_reason
    FROM thread 
AS thread
        LEFT JOIN  user 
AS user ON (user.username thread.lastposter)
        
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid deletionlog.primaryid AND type 'thread')
        
WHERE NOT ISNULL(thread.threadid)
        AND 
thread.forumid NOT IN (4,)
        
    
ORDER BY lastpost DESC LIMIT 05;

MySQL Error  You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
        
    ORDER BY lastpost DESC LIMIT 0, 5' 
at line 8
Error Number 
1064
Date         
FridayOctober 13th 2006 06:55:55 PM 
ياليت تشوفون لي حل بسرعة المنتدى وقف كلة