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 '('now', '-12 month')' at line 1 in /Users/ppss/Sites/PPSS/api/alerter/details.php:615 Stack trace: #0 /Users/ppss/Sites/PPSS/api/alerter/details.php(615): PDO->prepare('SELECT ID,PRODU...') #1 /Users/ppss/Sites/PPSS/api/alerter/details.php(822): renderExpireReturn() #2 /Users/ppss/Sites/PPSS/api/alerter/details.php(980): render('EXPIRE_RET_ITEM...') #3 {main} thrown in /Users/ppss/Sites/PPSS/api/alerter/details.php on line 615