diff --git a/booking.earlyaccess_admin.inc b/booking.earlyaccess_admin.inc index 0767d9c..c8d5dda 100644 --- a/booking.earlyaccess_admin.inc +++ b/booking.earlyaccess_admin.inc @@ -144,7 +144,7 @@ function booking_earlyaccess_csv_report() { //get a list of all the early access codes for this event $codelist_query = db_select('booking_regn_earlyaccess_codes', 'c'); $codelist_query->condition('c.booking_eventid', $event->eid, '=') - ->fields('p') + ->fields('c') ->orderBy('cid'); $result = $codelist_query->execute();