info: MySQL Query Error

Time: 2019-8-17 8:53pm
SQL: sql error
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 'and a.catsid= order by a.dateline desc limit 10' at line 1
Errno.: 1064