Please Log in to join the conversation.
Please Log in to join the conversation.
SELECT m.*
FROM `TABLE-PREFIX-HERE_cbsubs_mailer_mailqueue` AS m
WHERE m.`state` = 'A'
AND m.`time_to_mail` <= '2017-12-05 13:53:46'
AND m.`time_too_late` > '2017-12-05 13:53:46'
ORDER BY m.`priority` DESC, m.`time_to_mail`
LIMIT 0, 100
UPDATE `TABLE-PREFIX-HERE_cbsubs_mailer_mailqueue` SET `time_too_late` = `time_to_mail` WHERE `time_too_late` IS NULL
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.