PHP timstamps is a prime integer, while MySQL now()returns a datetime value. Most likely, this will fix the request:
SELECT ... WHERE user_regdate < unix_timestamp(now() - interval 7 day)) ...
Basically, without calling unix_timstamp (), you are comparing apples and oranges.
source
share