[eluser]theprodigy[/eluser]
The only thing I can think of is that your query isn't returning records, probably even throwing an error and for some reason, your 'remote' web server isn't catching it.
Have you tried running your query directly on the remote db server and see what it returns?
I would run a couple of tests myself.
1. Connect directly to your remote db server (ssh, cpanel and phpmyadmin, whatever), and running the query locally.
2. Connect remotely from another machine using a program like mysql workbench, and running the query that way.
3. If both of these work, then run a print_r on your $mydb variable before running any queries and make sure you are connecting correctly and fully.
That's all I can think of right now.
Try those things and write back with your results.