global $wpdb;
$tbl = $wpdb->prefix.\'postmeta\';
$prepare_guery = $wpdb->prepare( "SELECT post_id FROM $tbl where meta_key =\'_Wps_crossells\' and meta_value like \'%%d%\'", $meta_value );
$get_values = $wpdb->get_col( $prepare_guery );
Note: 表应为
$wpdb->prefix.\'postmeta\';