Notice: Undefined index: trainerID in /var/www/html/application-2014/www.unesco.org/php/scripts/trainer.php on line 13

Fatal error: 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 72 in /var/www/html/application-2014/www.unesco.org/php/liteFramework/Database.php:43 Stack trace: #0 /var/www/html/application-2014/www.unesco.org/php/liteFramework/Database.php(43): PDO->query('\n SELECT\n ...') #1 /var/www/html/application-2014/www.unesco.org/php/modules/trainers.php(455): liteFramework\Database->query('\n SELECT\n ...') #2 /var/www/html/application-2014/www.unesco.org/php/scripts/trainer.php(13): trainers\get(NULL) #3 /var/www/html/application-2014/www.unesco.org/php/modules/page.php(631): require('/var/www/html/a...') #4 /var/www/html/application-2014/www.unesco.org/php/modules/page.php(580): page\Page->script() #5 [internal function]: page\Page->__construct('es') #6 /var/www/html/application-2014/www.unesco.org/php/modules/page.php(117): PDOStatement->fetch() #7 /va in /var/www/html/application-2014/www.unesco.org/php/DatabaseConstants.php on line 16