function getStatuses() { $packagingDetails = new PackagingDetailsEntry(); $packagingDetails->query('SELECT DISTINCT status FROM ' . $packagingDetails->__table . ' ORDER BY status'); $statuses = array(); while ($packagingDetails->fetch()) { $statuses[] = $packagingDetails->status; } return $statuses; }