Fatal error: Uncaught Exception: SafeMySQL: 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 n.date < NOW()' at line 1. Full query: [SELECT COUNT(*) as cnt FROM tr_news n, tr_news_to_categories nc WHERE n.id = nc.news_id AND n.is_deleted = 0 AND nc.category_id = AND n.date < NOW() ] in /var/www/rupor.info/libs/safemysql.class.php:624
Stack trace:
#0 /var/www/rupor.info/libs/safemysql.class.php(483): SafeMySQL->error('SafeMySQL: You ...')
#1 /var/www/rupor.info/libs/safemysql.class.php(233): SafeMySQL->rawQuery('SELECT COUNT(*)...')
#2 /var/www/rupor.info/includes/functions.php(814): SafeMySQL->getRow('SELECT COUNT(*)...')
#3 /var/www/rupor.info/category.php(13): getCntNewsByCategoryId(NULL, 'AND nc.category...')
#4 /var/www/rupor.info/index.php(39): include('/var/www/rupor....')
#5 {main}
thrown in /var/www/rupor.info/libs/safemysql.class.php on line 624