08:21:17 ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

The sql is: SELECT * FROM chanzhi_article wHeRe type = 'page' AND addedDate <= '2018-08-22 08:21:17' AND status = 'normal' AND chanzhi_article.lang in('zh-cn', 'all') oRdEr bY

in /home/web/chanzhi.it603.com/system/lib/dao/dao.class.php on line 608, last called by /home/web/chanzhi.it603.com/system/lib/dao/dao.class.php on line 705 through function query.
in /home/web/chanzhi.it603.com/system/framework/router.class.php on line 1791 when visiting page