diff --git a/app/helpers.php b/app/helpers.php
index 378f990..02e5c03 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -69,13 +69,9 @@ class WinningBidSelectList
{
public static function WinningBidShowNumbers()
{
- $winning_bid_num_results = DB::select("SELECT
- *
- FROM winning_bids
- INNER JOIN items AS items
- ON winning_bids.winning_item_num = items.iditems
- ORDER BY items.item_assigned_num
- ");
+ $winning_bid_num_results = WinningBids::join('items', 'winning_bids.winning_item_num', '=', 'items.iditems')
+ ->orderBy('items.item_assigned_num')
+ ->get();
$winning_bid_num = '';
foreach($winning_bid_num_results as $winning_bid_num_result){
$winning_bid_num .= '';