PHP: Persistent Database Connections - Manual
If you have multiple databases on the same server AND you are using persistent connections, you MUST prefix all the table names with the specific database name. Changing the database using the xxx_select_db functions alters the database for the connection...