diff --git a/backend/internal/sql/tournament.go b/backend/internal/sql/tournament.go index c5298b7..748404b 100644 --- a/backend/internal/sql/tournament.go +++ b/backend/internal/sql/tournament.go @@ -21,7 +21,7 @@ func (db *sqlImpl) GetTournament(id string) (tournament Tournament, err error) { } func (db *sqlImpl) GetTournamentByArgs(startTime int, division int, name string) (tournament Tournament, err error) { - err = db.db.Get(&tournament, "SELECT * FROM tournament WHERE start_time=$1 AND division=$2 AND name=$name", startTime, division, name) + err = db.db.Get(&tournament, "SELECT * FROM tournament WHERE start_time=$1 AND division=$2 AND name=$3", startTime, division, name) return tournament, err }