Jump to content

SQL error. Need Help.


moola

Recommended Posts

SELECT i.*, u.username, u.email, g.gallery_name, CONCAT('http://tutaka.com/images/',u.username,'/', i.name, '.', type) AS image_url, CONCAT('http://tutaka.com/thumbs/',u.username,'/', i.name, '.jpg') AS thumb_url FROM images i LEFT OUTER JOIN galleries g ON i.gallery_id=g.gallery_id, users u WHERE i.user_id=u.user_id AND i.user_id=3 ORDER BY i.uploaded desc LIMIT -5,5

 

 

mySQL Says: 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 '-5,5' at line 1

 

 

I can't figure what the error is all about?

Link to comment
https://forums.phpfreaks.com/topic/36860-sql-error-need-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.