Notice: Undefined index: project in /home/stratman/ on line 17

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 MariaDB server version for the right syntax to use near 'AND curdate() >= `lw_dealmemos`.fromdateDealMemos AND curdate() <= `lw_d' at line 5' in /home/stratman/ Stack trace: #0 /home/stratman/ PDO->prepare('SELECT distinct...') #1 /home/stratman/ adminDAO->selectCurrentProjects(NULL) #2 /home/stratman/ require('/home/stratman/...') #3 /home/stratman/ Controller->createViewVarWithContent() #4 /home/stratman/ Controller->render() #5 {main} thrown in /home/stratman/ on line 336