title: where statement doesn't work in stored procedure
body: <p>So i have this stored procedure:</p>
  
  <pre><code>DELIMITER $$
  
  CREATE DEFINER=`admin`@`%` PROCEDURE `GetGoalDetail`(IN goalId int)
      DETERMINISTIC
  BEGIN
  
  SELECT *
  FROM actions  
  Where GoalId = goalId;
  
  Select * From contributors 
  where GoalId = goalId;
  
  Select * From discussions 
  where GoalId = goalId;
  END
  </code></pre>
  
  <p>and when I call it: </p>
  
  <pre><code>CALL 'GetGoalDetail`(15);
  </code></pre>
  
  <p>I hope to see everything related to goalId = 15. But the second query always returns all of the contributors!!! Why is this? Is there some I am missing?</p>