title: List custom post type by custom taxonomy id and filter by array on post id
body: <p>Hi I need to fetch result of post type by category id and post title using like operator.</p>
  
  <p>For example </p>
  
  <pre><code>Category name : Sports  
  Post name : Basketball , hockey , volley ball
  </code></pre>
  
  <p>From the below query i get post name and its id and i pass them to the get post query but the query returns all post inside that category </p>
  
  <p>For suppose i search for volleyball inside that category i get all results i need only the volleyball in the output.</p>
  
  <p>See My code below</p>
  
  <p>$mypostids_title = $wpdb->get_col("select ID from $wpdb->posts where post_title like '%$title%' ");</p>
  
  <pre><code>$args_sby= array(
      'post_type'      =&gt; 'campaign',
      'post_status'    =&gt; 'publish',  
      'posts_per_page' =&gt; -1,    
      'post__in' =&gt; $mypostids_title, 
          'tax_query' =&gt; array(
              array(
             'taxonomy' =&gt; 'campaign_category',
             'field'    =&gt; 'term_id',                      
              'terms'    =&gt; $_GET['c'],
              'operator' =&gt; 'AND',                
              )
         ),
  
      );
  $posts = get_posts($args_sby);
  </code></pre>
  
  <p>I get array of post id from the above select query and i pass them inside the get post query argument and i get only result by taxonomy but i need to get result by taxonomy as well as the post id , please let me know how to solve this.
  Thanks in advance.</p>