GetOrderData query (needs testing)