A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/news.php

Line Number: 49

Database Error

Error Number: 1064

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 `state` = '1'' at line 3

SELECT * FROM (`cp_articles`) WHERE `categoryId` IN () AND `state` = '1'

Filename: /home/binhdinh/public_html/models/news_model.php

Line Number: 170