Code: 1064
SELECT count(tn.news_id FROM {DB_PREFIX}news tn
			LEFT OUTER JOIN {DB_PREFIX}news_cats tc ON tn.news_cat=tc.news_cat_id
			) FROM `(tn.news_visibility='0' || tn.news_visibility='-2') AND tn.news_cat>0 AND (tn.news_start='0'||tn.news_start<=1542547410) AND (tn.news_end='0'||tn.news_end>=1542547410) AND tn.news_published='1' AND (tc.news_cat_locale='all' OR tc.news_cat_locale='German')`
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 'FROM td2011_news tn LEFT OUTER JOIN td2011_news_cats tc ON' at line 1