Notice: Trying to get property of non-object in /home/liguebn/www/gestion/classes/equipe.class.php on line 311

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 /home/liguebn/www/gestion/classes/Database.class.php:120 Stack trace: #0 /home/liguebn/www/gestion/classes/Database.class.php(120): PDOStatement->execute(Array) #1 /home/liguebn/www/gestion/classes/coach.class.php(181): Database->prepare('SELECT * FROM c...') #2 /home/liguebn/www/gestion/classes/equipe.class.php(312): coach->setCoachById() #3 /home/liguebn/www/gestion/fonctions/fGenerique.php(372): equipe->setEquipeByID() #4 /home/liguebn/www/gestion/application.classe.php(287): traiteRequest(Array, Array) #5 /home/liguebn/www/gestion/index.php(27): application->buildPage() #6 {main} thrown in /home/liguebn/www/gestion/classes/Database.class.php on line 120