Notice: Trying to get property of non-object in /home/autobhl/www/Controller/Marque.php on line 189 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 'AND modele.idmarque = marque.idmarque AND modele.idmarque = AND MID(Offre.code,' at line 5' in /home/autobhl/www/Model/Offre.php:117 Stack trace: #0 /home/autobhl/www/Model/Offre.php(117): PDOStatement->execute() #1 /home/autobhl/www/Controller/Marque.php(189): Offre_M->getOffresByMarque_id(NULL) #2 /home/autobhl/www/index.php(43): Controller_Marque->execute() #3 {main} thrown in /home/autobhl/www/Model/Offre.php on line 117