Function GET_LOGIN returns ‘The provided type “SQL” is not allowed’ message.