$db1 = mysql_connect('host1', 'user', 'user');
$db2 = mysql_connect('host2', 'user', 'user', true);
mysql_select_db('db1', $db1);
mysql_select_db('db2', $db2);
mysql_query("select * from table1");
which db connection will be used if connection object not provided in query?