title: MySQL Syntax Error In Variable Declaration
body: <p>I have the following MySQL query:</p>
  
  <pre><code>DELIMITER //
  CREATE PROCEDURE InsertResult (IN winnerID INT, IN loserID INT)
  BEGIN
      INSERT INTO KomperResult (WinnerID, LoserID) VALUES (@winnerID, @loserID);
      DECLARE winnerScore, loserScore INT;
      SELECT Score INTO @winnerScore FROM KomperPerson WHERE ID = @winnerID;
      SELECT Score INTO @loserScore FROM KomperPerson WHERE ID = @loserID;
      IF (@loserScore &gt;= @winnerScore) THEN UPDATE KomperPerson SET Score = @loserScore + 1 WHERE ID = @winnerID; END IF;
  END//
  </code></pre>
  
  <p>I get an error on:</p>
  
  <pre><code>DECLARE winnerScore, loserScore INT;
  </code></pre>
  
  <p>What am I doing wrong?</p>