Have you got phpMyAdmin?

If so run your query through that to test.