Notice: Undefined index: security in /var/www/html/strategic/api/yearplan/indicatortpf.query.php on line 10

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select s_indicatortp , indicatortp.s_indicator , indicator.name as indicatorname , indicatortp.s_purposetp from indicatortp LEFT outer JOIN indicator ON indicator.s_indicator = indicatortp.s_indicator where year = AND indicatortp.s_purposetp = 0 ] -> 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 indicatortp.s_purposetp = 0' at line 10' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/strategic/api/yearplan/indicatortpf.query.php(26): DbMySql->queryRecords('select \n s_i...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30