Whoops!
Yes, it seems that I really didn't investigate the problem well enough - it turned out to be 2 problems: firstly, my query (which I had been echoing to the screen in order to test it's interaction with the D😎 had incorrect syntax in it.
Second, I think that the CMD window which I am using directly with the DB can only have 254 chars pasted into it in one go... (i've actaully just tested that, and it is right...)
So there we go. Thanks for the help anyway!