Warning: Undefined array key 0 in /home/nrsol/public_html/App/Models/Category.php on line 39

Warning: Attempt to read property "category_id" on null in /home/nrsol/public_html/App/Models/Category.php on line 39

Fatal error: Uncaught PDOException: 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 'AND Category.language_id = 2' at line 1 in /home/nrsol/public_html/App/Database/DbConnection.php:85 Stack trace: #0 /home/nrsol/public_html/App/Database/DbConnection.php(85): PDO->query('SELECT *, Categ...') #1 /home/nrsol/public_html/App/Models/Category.php(87): Database\DbConnection::query('SELECT *, Categ...', true) #2 /home/nrsol/public_html/App/WebRoute.php(555): Models\Category::FindOne(Array) #3 /home/nrsol/public_html/App/Core/Route.php(81): {closure}('foyer-au-gaz', 'encastre') #4 /home/nrsol/public_html/App/WebRoute.php(558): Core\Route::Get(Array, Object(Closure)) #5 /home/nrsol/public_html/public/index.php(48): include('/home/nrsol/pub...') #6 {main} thrown in /home/nrsol/public_html/App/Database/DbConnection.php on line 85