If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Error line

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-13-06, 16:51
zodehala zodehala is offline
Registered User
 
Join Date: Jan 2006
Posts: 24
Error line

when i get following error

Code:
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 ')' at line 9

where will i see ?
Reply With Quote
  #2 (permalink)  
Old 12-13-06, 19:51
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
show query, please
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-13-06, 20:45
zodehala zodehala is offline
Registered User
 
Join Date: Jan 2006
Posts: 24
HTML Code:
Invalid SQL:

        SELECT post.postid, post.title, post.pagetext, post.dateline, post.userid, post.visible AS postvisible,
            IF(user.username, user.username, post.username) AS username,
            thread.threadid, thread.title AS threadtitle, thread.postuserid, thread.visible AS threadvisible,
            forum.forumid, forum.password
        FROM post AS post
        LEFT JOIN user AS user ON (post.userid = user.userid)
        INNER JOIN thread AS thread ON (post.threadid = thread.threadid)
        INNER JOIN forum AS forum ON (thread.forumid = forum.forumid)
        WHERE post.postid IN ();

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 ')' at line 9
Error Number : 1064
Date         :
Script       : http://www.mysite.com/newreply.php?do=newreply&noquote=1&p=756
Referrer     : http://www.mysite.com/showthread.php?p=756
IP Address   : 
Username     : Admin
Classname    : vb_database
Reply With Quote
  #4 (permalink)  
Old 12-13-06, 20:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
remove that WHERE clause!
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 12-13-06, 23:01
zodehala zodehala is offline
Registered User
 
Join Date: Jan 2006
Posts: 24
Quote:
Originally Posted by r937
remove that WHERE clause!

form where ? from db or what ? i don not know ?

(this error occurs while i am posting new reply in vBulletin forums )
Reply With Quote
  #6 (permalink)  
Old 12-14-06, 07:55
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
the WHERE clause is invalid like that -- remove it from the query
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On