* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
WHERE
`status`='CONFIRMED' AND (
(
- `last_update` < (UNIX_TIMESTAMP() - {?profile_update?}) AND
+ (UNIX_TIMESTAMP() - `last_update`) >= {?profile_update?} AND
`last_update` > 0 AND
- `last_profile_sent` < (UNIX_TIMESTAMP() - {?resend_profile_update?})
+ (UNIX_TIMESTAMP() - `last_profile_sent`) >= {?resend_profile_update?}
) OR (
`last_update` = 0 AND
`last_profile_sent` = 0 AND
- `joined` < (UNIX_TIMESTAMP() - {?profile_update?})
+ (UNIX_TIMESTAMP() - `joined`) >= {?profile_update?}
)
)
ORDER BY