title: Error: INTO specified more than once at or near "INTO"
body: <p>Inside a postgresql function I'm trying to get two values selected from a table into two variables, but I get this error:</p>
  
  <pre><code>INTO specified more than once at or near "INTO"
  </code></pre>
  
  <p>This is the (pseudo)code:</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION func() RETURNS TRIGGER AS
  $$ 
  DECLARE
      a numeric;
      b varchar(20);
      c numeric;
  BEGIN
      IF ... THEN
          ...
  
          SELECT x INTO a FROM t1 WHERE y = 1
  
          IF a &gt; 5 THEN
              SELECT m, n INTO b, c FROM t2 WHERE ...;
              ...
          END IF;
      END IF;
  END
  $$ LANGUAGE plpgsql;
  </code></pre>