Mysqli bug fix
Created by: spacedmonkey
Fix an issue where sometimes $this->result wasn't the correct type (boolean). It is an edge case but I have seen some explains in my error logs.
PHP Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /<path>/wp-content/db.php on line 963