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 MySQL server version for the right syntax to use near '' at line 1 in /home/dgintera/www/inc.fonctions.php:342 Stack trace: #0 /home/dgintera/www/inc.fonctions.php(342): PDO->query('SELECT parent_i...') #1 /home/dgintera/www/index.php(85): get_parent_id(NULL, Object(PDO)) #2 {main} thrown in /home/dgintera/www/inc.fonctions.php on line 342