diff --git a/methods/teams.php b/methods/teams.php index 63c0ff7..6ffb9ca 100644 --- a/methods/teams.php +++ b/methods/teams.php @@ -9,8 +9,8 @@ function run_method($state) $teams = $state->db->fetchAll("SELECT id, name, captain, created_at FROM teams -LIMIT $offset, 50 -WHERE tournament = ?", [$tourn_id]); +WHERE tournament = ? +LIMIT $offset, 50", [$tourn_id]); array_walk($teams, "walker");