title: Cant declare variable SQL
body: <p>I've been trying to declare an integer variable but its just not working. Here is my query:</p>
  
  <pre><code>DECLARE @count INT
  SET     @count = 5633
  
  SELECT count(matchid) 
  FROM   `matches`
  WHERE   id = @count
  </code></pre>
  
  <p>Im getting this error:</p>
  
  <pre><code>Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DECLARE @count INT
  SET     @count = 5633
  </code></pre>
  
  <p>Please help :)</p>