diff --git a/app/Console/Commands/TabulateWinners.php b/app/Console/Commands/TabulateWinners.php index c36fe24..a197c2c 100644 --- a/app/Console/Commands/TabulateWinners.php +++ b/app/Console/Commands/TabulateWinners.php @@ -64,7 +64,7 @@ class TabulateWinners extends Command { $peoplesChoiceWinnerQuery = DB::table('peoples_choice') ->groupBy('peoples_choice.vehicle') - ->selectRaw('*, sum(pc_count as totalscore') + ->selectRaw('*, sum(pc_count) as totalscore') ->whereNotIn('vehicle', function($query){ $query->select('vehicle')->from('car_show_winners'); })