Motoryachts
SELECT SQL_CALC_FOUND_ROWS wp974_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM wp974_postmeta price_meta2 WHERE price_meta2.post_id=wpml_translations_default.element_id AND price_meta2.meta_key='_accommodation_min_price:2019-12-16:2020-12-16' LIMIT 1), 0) accommodation_price FROM wp974_posts LEFT JOIN wp974_term_relationships ON (wp974_posts.ID = wp974_term_relationships.object_id) JOIN wp974_icl_translations wpml_translations
ON wp974_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT('post_', wp974_posts.post_type) LEFT JOIN wp974_icl_translations wpml_translations_default ON wpml_translations_default.trid = wpml_translations.trid AND wpml_translations_default.source_language_code IS NULL WHERE 1=1 AND (
wp974_term_relationships.term_taxonomy_id IN (11)
) AND wp974_posts.post_type = 'accommodation' AND ((wp974_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'en' OR 0 ) AND wp974_posts.post_type IN ('post','page','attachment','wp_block','location','accommodation','acf-field-group','product','product_variation','wpcf7_contact_form','mc4wp-form' ) ) OR wp974_posts.post_type NOT IN ('post','page','attachment','wp_block','location','accommodation','acf-field-group','product','product_variation','wpcf7_contact_form','mc4wp-form' ) ) GROUP BY wp974_posts.ID HAVING 1=1 ORDER BY wp974_posts.post_title ASC LIMIT 0, 12
array(10) {
["post_type"]=>
string(13) "accommodation"
["post_status"]=>
array(1) {
[0]=>
string(7) "publish"
}
["posts_per_page"]=>
int(12)
["paged"]=>
int(1)
["orderby"]=>
string(5) "title"
["suppress_filters"]=>
bool(false)
["order"]=>
string(3) "ASC"
["tax_query"]=>
array(1) {
[0]=>
array(4) {
["taxonomy"]=>
string(18) "accommodation_type"
["field"]=>
string(7) "term_id"
["terms"]=>
array(1) {
[0]=>
int(11)
}
["operator"]=>
string(2) "IN"
}
}
["search_only_available"]=>
bool(false)
["meta_query"]=>
array(0) {
}
}