NickName:user1456574 Ask DateTime:2012-06-14T23:02:32 MySql query syntax error DATE_SUB what's wront with this query? SELECT * FROM containmentTracker WHERE reviewDate < NOW() AND reviewDate > DATE_SUB(NOW(), INTERVAL 10 YEARS) I've tried in several way but every time I use DATE_SUB I get 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 'YEARS)' at line 1 or similar errors. What I'm doing wrong? Thank you Copyright Notice:Content Author:「user1456574」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/11035953/mysql-query-syntax-error-date-sub Answers