You have an error on your query !!!!

Requested query:

select * from categoriesByLang where ItemID = and Visible=1 and LangID = 1


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 'and Visible=1 and LangID = 1' at line 1


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