SELECT * FROM wms_bill_order wbo LEFT JOIN wms_bill_order_detailed wbod ON wbo.id=wbod.order_id WHERE create_dtime between date_add(now(), interval - 5 minute) and now();