FIX: aggregated query error in MYSQL

This commit is contained in:
DM42.Net (Matt Dent) 2019-01-13 14:06:36 -05:00
parent 9e42dfd094
commit 121fa834d5

View File

@ -4959,7 +4959,7 @@ function zot_reply_pickup($data) {
// It's possible that we have more than 100 messages waiting to be sent.
// See if there are any more messages in the queue.
$x = q("select *,min(outq_created) as earliest from outq where outq_posturl = '%s'",
$x = q("select * from outq order by outq_scheduled where outq_posturl = '%s' limit 1",
dbesc($data['callback'])
);