diff --git a/src/Services/Cron.php b/src/Services/Cron.php index 267e1871..e33baebc 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -498,7 +498,7 @@ final class Cron } DB::beginTransaction(); - $email_queues_raw = DB::select('SELECT * FROM email_queue where `type` = "bulk" order by id DESC LIMIT 1 FOR UPDATE SKIP LOCKED'); + $email_queues_raw = DB::select('SELECT * FROM email_queue where `type` = "bulk" LIMIT 1 FOR UPDATE SKIP LOCKED'); if (count($email_queues_raw) === 0) { DB::commit();