From 54e74b412e4edf70456fb4a6db036d59659619ed Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 29 Jan 2018 21:24:27 +1100 Subject: [PATCH] fix query --- booking.helper.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.helper.inc b/booking.helper.inc index d45f5db..763326a 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -257,7 +257,7 @@ function _booking_get_waitinglist() $query->condition($db_and) ->fields('p') ->fields('y') - ->orderBy('p.booking_status')->orderBy('p.booking_payment_date'); + ->orderBy('p.booking_status')->orderBy('y.booking_payment_date'); $definition_result = $query->execute(); watchdog('booking_debug', "
_booking_get_waitinglist\n@info
", array('@info' => print_r( $definition_result, true)));