public static function make_simple_query_object( $slug, \wpdb $wpdb = null ) {

		$table = static::get( $slug );
		$wpdb  = $wpdb ?: $GLOBALS['wpdb'];

		if ( $table ) {
			return new Simple_Query( $wpdb, $table );
		} else {
			return null;
		}
	}
public static function make_simple_query_object( $slug, \wpdb $wpdb = null ) {

		$table = static::get( $slug );
		$wpdb  = $wpdb ?: $GLOBALS['wpdb'];

		if ( $table ) {
			return new Simple_Query( $wpdb, $table );
		} else {
			return null;
		}
	}
public static function make_simple_query_object ( $ slug , \ wpdb $ wpdb = null ) { $ table = static :: get ( $ slug ) ; $ wpdb = $ wpdb ? : $ GLOBALS [ 'wpdb' ] ; if ( $ table ) { return new Simple_Query ( $ wpdb , $ table ) ; } else { return null ; } }
Make a query object for the selected db table.

@since 1.0

@param string $slug Table name.
@param \wpdb  $wpdb

@return Simple_Query|null
Make a query object for the selected db table .