WordPress File wp-includes/wp-db.php

wpdb::query()

Performs a database query, using current database connection.

wpdb::select()

Selects a database using the current or provided database connection.