If the subdomain was messed up, the code wouldn't be able to find the file. The error tells me it's not only finding the file, it's realizing that the MySQL query on line 187 is not executing correctly. That's what the numrows error is. The numrows is calling the error because there is no result to count, which means the query is not executing properly. There could be several reasons for this.
1. the PREFIX on your tables does not match the prefix listed in the config file. To check this, download the inc/config.php file and open it up in notepad. Near the bottom you should see something like : $prefix = "blahblah"
The default prefix is 'adopts_' although you can enter another one. Now access your database. PhpMyAdmin is the most popular access, but there are other ones too. Listed before each of your tables should be the prefix. Make sure it matches the prefix listed in the config file. If it doesn't, fix the config file and upload it.
2. Your database simply is not working. If that's the case, you'll want to talk to your host and figure out why.