Fixed bug in Query::__toString() when SQL was not a SELECT