So i'm trying to get from sql query all invoices that has the due date greater than 30 days ( 1 month ) compared to the current date and i ge the following errors
SELECT * from Manager\Models\ProjectInvoices where recurring = 1 and NOW() >= DATEADD('month',1,due)
SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION rhino.DATEADD does not exist
SELECT * from Manager\Models\ProjectInvoices where recurring = 1 and NOW() >= due + INTERVAL 1 MONTH
Syntax error, unexpected token INTEGER(1), near to ' MONTH', when parsing: SELECT * from Manager\Models\ProjectInvoices where recurring = 1 and NOW() >= due + INTERVAL 1 MONTH (101)
SELECT * from Manager\Models\ProjectInvoices where recurring = 1 and NOW() >= due + INTERVAL +1 MONTH
Syntax error, unexpected EOF