tags:

views:

58

answers:

2
as a 
limit 0,50 
ORDER BY SortOrder, paid desc, ae desc, name asc, title asc

ERROR 1064 (42000): 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 SortOrder, paid desc, ae desc, name asc, titile asc' at line 48

+11  A: 

You have to change the order of the parts of your query. Change it to

as a ORDER BY SortOrder, paid desc, ae desc, name asc, title asc limit 0,50
michal kralik
+1 http://dev.mysql.com/doc/refman/5.1/en/select.html
Daniel Vassallo
+3  A: 

As far as I know, LIMIT needs to be at the end of the statement.

Bobby