Array ( [0] => Array ( ) [1] => 1 ) Array ( [0] => Array ( ) [1] => 1 ) Value = 1 delay group count: 1 delay group: 0 Applicabple in this group? 0 Array ( [0] => Array ( ) [1] => 1 ) Value = 1 delay group count: 2 delay group: -1 Applicabple in this group? 1 display 1 has items Adding to display queue32 1 -1 32 -1 0 32 -1 0 select * from orderitems where archived=0 and itemdate > 0 and parentorder='32' and (pending=0) and ischild=0 and ispayment=0 and isdiscount=0 32 -1 0 update orderitems set kitchensend='1525360685' where archived=0 and id='1' limit 1 delay group: 0 Applicabple in this group? 0 Array ( [0] => Array ( ) [1] => 1 ) Value = 1 delay group count: 1 delay group: -1 Applicabple in this group? 1 display 1 has items Adding to display queue33 1 -1 33 -1 0 33 -1 0 select * from orderitems where archived=0 and itemdate > 0 and parentorder='33' and (pending=0) and ischild=0 and ispayment=0 and isdiscount=0 33 -1 0 update orderitems set kitchensend='1525360755' where archived=0 and id='1' limit 1 33 -1 0 update orderitems set kitchensend='1525360755' where archived=0 and id='3' limit 1 Array ( [0] => Array ( ) [1] => 1 ) Value = 1 delay group count: 1 delay group: -1 Applicabple in this group? 1 display 1 has items Adding to display queue34 1 -1 34 -1 0 34 -1 0 select * from orderitems where archived=0 and itemdate > 0 and parentorder='34' and (pending=0) and ischild=0 and ispayment=0 and isdiscount=0 34 -1 0 update orderitems set kitchensend='1525361168' where archived=0 and id='6' limit 1 34 -1 0 update orderitems set kitchensend='1525361168' where archived=0 and id='8' limit 1