Your SQL dump proved to be informative.. Either 1=2 or 1=0 in a SQL statement means something you passed your WP_Query was invalid.
It appears that in your tax_query you specified 'field'=>'term_id', which isn’t a valid option – it should be just 'field'=>'id'.
Related Posts:
- Change searched term
- How to reset usual $query on search page to push custom $wpdb query there?
- what are the numbers between curly brackets in search query
- Search custom post type by meta data
- Custom query filter not working on woocommerce category page
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- $query->query_var[‘post_type’] not set for pages
- Filter query posts by the count of metas for a meta key
- search through post-type attachments titles
- How to set back query var author_name after unset it?
- pre_get_posts : ‘post__not_in’ doesn’t work with global variable
- Search query -> Show all pages except certain template
- Temporarily storing main search result
- Replace/Mute/Stop Search Query
- Query based on title, with ‘compare’ => ‘IN’
- is_search called incorreclty
- Attempt to improve WP search, can someone check my SQL query?
- Searching With Apostrophe
- How to change the amount of posts previewed on a page?
- Ideas how to search & replace post_content when string contains a newline?
- How to insert Collate into WordPress search query?
- Slow Search Queries – How to exclude pages, media, excerpt, authors, private posts?
- How to interfere to default search to make it search in custom fields?
- How to manage a particular “order by” for get_search_query()?
- Merge CPT Taxonomy and Post Taxonomy in $query->set
- WordPress search in modified post title
- Filter orders by modify date
- How to add url parameter to every search query in SearchWp?
- Add rewrite rule for archive search
- custom sorting media with multiple filters – error: not unique table/alias: wp_postmeta
- Restrict WordPress search to a single ACF field
- Modify behaviour of “s” parameter in wp_query
- Sort by postmeta on when searching
- Pagination adds search query (again)
- Speed up search query that searches in post meta?
- New custom post type entries are not sorted correctly in admin using pre_get_posts
- How to make MySQL search queries with quotes
- Limiting a filtered query
- $query->set( ‘post_type’, ‘post’ ); not working
- Why the pre_get_posts hook can cause apache stopped working?
- search.php is not generating the right results
- excludeCat function reverses order of blog posts
- Set posts per page for parent category and it’s all children
- Filter multiple different main queries on custom pages
- How to display search query as formatted text?
- Modify a query using both a text field and a true/false AFC field
- Admin Post List table Query filtering “WHERE” for custom post type
- Search query alteration not working for meta values
- pre get posts not working with Tribe Events
- is_search called incorrectly
- How to allow searching a custom meta key in admin list table?
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Get all image from single page using this query
- Add multiple value to a query variable in WordPress
- Search and replace text across all posts
- wp_dropdown_categories with multiple select
- WordPress Number of Posts Not Changing With posts_per_page
- How to find objects by terms
- Custom $wpdb Query for Custom Post Type by Category
- Are database queries created using WordPress filters protected from SQL injection?
- Is there a conditional tag for latest post or do i need a query?
- get_posts() loop returns the same the_title() for each post
- How to check current user in meta value array in WP_Query meta_query
- Change media attachment author via mysql query
- How to modify archive query with pre_get_posts to append CPTs?
- Help with MySQL to $WPDB query
- Group custom post listing in admin section
- problem with sql query in wordpress plugin
- Post 2 Post Site Search
- Search queries don’t seem to work?
- Exclude all sticky posts front page twenty twelve
- get csv of users with user_meta
- Search for two strings in WP search
- Custom SQL Query passing array to WHERE p.id
- get posts by tag to showing in a widget
- Mysql query not working on WordPress 4.2.2
- Custom search SQL Query to add custom field in result
- get_post_meta with WP_query
- How to exclude custom fields from search queries?
- How properly create a blog template for wordpress?
- Is there a way to add a link directly into this media query?
- Amend taxonomy to search in wordpress admin
- How can I modify this code to make the search box include tags and meta
- Change search query in wordpress custom post type
- Search custom posts by meta key in admin
- meta_query not working
- Cannot get sql request from Query object?
- Customising the default wordpress search functionality
- WordPress query: merge meta key (number) values and sort
- Question about of query
- Including taxonomy in searches
- Search has query that will return no results
- pre_get_posts improperly searching revisions
- Custom Query problem access the values
- Exclude sticky posts from query
- If more than 1 image show post link?
- Rewrite Query_Var URL Parameter with Slug
- How to query different categories on index?
- Can’t See Media Queries with Inspect Tool [closed]
- Can I make a Heading block above a query loop block disappear when that query loop has no results?