If the last command of multiple commands in "SQL command" is a comment, "Error in query:" will be displayed for the (nonexistent) command after the comment.
I can't reproduce this error. Can you please attach the exact string passed to SQL textarea?
Forgot to mention this happens in Postgres, not MySQL.
SELECT * FROM metadatavalue LIMIT 1;
Thank you for the report, I've fixed it in Git.