Fix pc table join
This commit is contained in:
parent
556371c11d
commit
0a231c14bb
@ -62,7 +62,7 @@ class TabulateWinners extends Command
|
||||
|
||||
function pcWinner()
|
||||
{
|
||||
$peoplesChoiceWinnerQuery = DB::table('peoples_choice')
|
||||
$peoplesChoiceWinnerQuery = PeoplesChoice::join('vehicles', 'peoples_choice.vehicle', '=', 'vehicles.id')
|
||||
->groupBy('peoples_choice.vehicle')
|
||||
->selectRaw('*, sum(pc_count) as totalscore')
|
||||
->whereNotIn('vehicle', function($query){
|
||||
|
Loading…
Reference in New Issue
Block a user