SELECT obo.id, obo.ready_notified, obo.view_notified, obo.order_name, CONVERT_TZ(obo.submitted_at, 'GMT', 'America/New_York') AS submitted_at, obo.order_counter, obo.is_pos, obo.occasion, obo.dine_in_table_number, obo.cashier_id, obo.terminal_name, obo.terminal_id, obo.payment_type, obo.total, obo.is_paid_by_split, obo.payment_type_raw, obo.is_submitted, obo.is_cancelled, obo.is_split_cancelled,obo.has_refund, obo.has_adjustment, obo.adjusted_total, obo.tip, obo.refund_total, obo.refund_pending, obo.order_hash, GROUP_CONCAT(oth.transaction_id) AS transaction_id FROM order_botorder obo LEFT JOIN order_ordertransactionhistory AS…