MySQL Forums
Forum List  »  Newbie

1064 Error
Posted by: Chris Saunders
Date: April 12, 2005 04:45AM

Hey All,

Im having problems with a PHP script of mine returning the following error:

1064 - 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 '-20, 20' at line 1

select newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -20, 20

[TEP STOP]

Could someone please explain to me what this means.

Is it a problem with the actual PHP SQL query ... or is it a problem with the database.

Im kind of stuck.

Cheers.

Options: ReplyQuote


Subject
Written By
Posted
1064 Error
April 12, 2005 04:45AM
April 13, 2005 04:41AM
April 13, 2005 04:55AM
April 13, 2005 06:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.