I'm retrieving all the expired tickets from the database, with the following query
SELECT user,status,hash
FROM ticket
WHERE datepay < date_add(now(), interval -1 month) AND user = '119'
The result is as expected, as below....
asked by
17.05.2018 / 19:55