I didn't think your query would show the variables since you are presumably using PDO and binding parameters for security reasons.
No, I don't think you have to use the $wpdb object. I don't see why you couldn't use PDO instead. I was just thinking that you might as well use Wordpress functions since you're in there, though using a different database it may be more hassle than it's worth.