Notice (8): Undefined index: Categorie [APP/Controller/PublicationsController.php, line 31]
Notice (8): Trying to access array offset on value of type null [APP/Controller/PublicationsController.php, line 31]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/lepetitbz/portailfamille.org/lib/Cake/Utility/Debugger.php:797) [CORE/Cake/Network/CakeResponse.php, line 458]
Errors

Database Error

Error: 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 'ORDER BY `Publication`.`id` DESC LIMIT 5' at line 1

SQL Query: SELECT `Publication`.*, `Categorie`.*, `User`.`username` FROM `lepetitbz331`.`publications` AS `Publication` LEFT JOIN `lepetitbz331`.`users` AS `User` ON (`User`.`id` = `Publication`.`auteur`) LEFT JOIN `lepetitbz331`.`categories` AS `Categorie` ON (`Categorie`.`id` = `Publication`.`type`) WHERE `Publication`.`actif` = 1 AND `Publication`.`type` = ORDER BY `Publication`.`id` DESC LIMIT 5

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace

Inscription PortailFamille.org