Jump to content

MySQL Syntax Error


kyles0623

Recommended Posts

I get this 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' at line 1

 

I only get this error when I order by an int variable called order taken from the table.

 

$sql = "SELECT * FROM cms_content ORDER BY order";

 

I can order it by other things but not that.

Link to comment
https://forums.phpfreaks.com/topic/206004-mysql-syntax-error/
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.