Notice: Undefined property: App\Controllers\BaiesBlog::$category in /var/www/html/App/Controllers/BaiesBlog.php on line 67
Warning: Invalid argument supplied for foreach() in /var/www/html/App/Controllers/BaiesBlog.php on line 67
Notice: Undefined variable: idCategory in /var/www/html/App/Controllers/BaiesBlog.php on line 72
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 ')' at line 1' in /var/www/html/Core/Database/MysqlDatabase.php:117
Stack trace:
#0 /var/www/html/Core/Database/MysqlDatabase.php(117): PDO->query('SELECT count(id...')
#1 /var/www/html/Core/Database/Mysql.php(143): Core\Database\MysqlDatabase->query('SELECT count(id...', 'Core\\Entity', true)
#2 /var/www/html/Core/Models/Blog/Article.php(149): Core\Database\Mysql->query('SELECT count(id...', Array, true)
#3 /var/www/html/App/Controllers/BaiesBlog.php(76): Core\Models\Blog\Article->count(Array)
#4 /var/www/html/App/Controllers/BaiesBlog.php(28): App\Controllers\BaiesBlog->index()
#5 /var/www/html/public/index.php(68): App\Controllers\BaiesBlog->load()
#6 {main}
thrown in /var/www/html/Core/Database/MysqlDatabase.php on line 117