Add 'set' query to mysqli because it has no result object.

The 'set' query doesn't have a result object, and it's not being caught in the if statement in `query()` so killing the script.