You have an error on your query !!!!

Requested query:

select *,DATE_FORMAT(NewsDate, '%d.%m.%Y') as dt from newsByLang where Visible = 1 and LangID =1 and SubID= order by NewsDate DESC


Mysql Responce:

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 NewsDate DESC' at line 1


If you don't want to dislay this error turn constant SMOTE to 'true'.