require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );
global $wpdb;
$table = $wpdb->get_col("SELECT object_id FROM {$wpdb->prefix}term_relationships WHERE term_taxonomy_id = {$_GET['tid']}");
$tables = array();
foreach( $table as $id ){
if( get_post_status($id) == 'publish' ){
array_push($tables, $id);
}
}