Fix the interval (stupid mysqlism) and incorrect quotes