title: MySQL Error 1415
body: <p>I'm currently coding somewhat on MySQL and got a FUNCTION.
  For me the code looks fine, but MySQL throws a</p>
  
  <p><code>Error Code: 1415
  Not allowed to return a result set from a function</code>
  Error.</p>
  
  <p>Function:
  <a href="http://pastebin.com/Pz9NFRGD" rel="nofollow">Cick here, pastebin.com</a></p>
  
  <p>As i said, i dont see any syntax error in it and simply cant understand why its throwing an Error. Only on execution though, creates without any problems.</p>
  
  <p>I googled already, and haven't found anything helping my on this, so i hope you can. 
  Thanks in advice.</p>