SELECT wp_posts.*, ROUND(RAND()*1000) 'rand_ind' FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) INNER JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) WHERE 1=1 AND wp_posts.post_type = 'bo_yachts' AND ((wp_posts.post_status = 'publish')) AND ( wp_postmeta.meta_key = 'bo_select_type_name_de' AND ( ( ( ( mt1.meta_key = 'bo_area_val' AND CAST(mt1.meta_value AS CHAR) = '82' ) ) AND ( ( mt2.meta_key = 'bo_port_val' AND CAST(mt2.meta_value AS CHAR) = '1420' ) OR ( mt2.meta_key = 'bo_port_val' AND CAST(mt2.meta_value AS CHAR) = '11507' ) OR ( mt2.meta_key = 'bo_port_val' AND CAST(mt2.meta_value AS CHAR) = '3728' ) OR ( mt2.meta_key = 'bo_port_val' AND CAST(mt2.meta_value AS CHAR) = '201' ) ) ) AND ( ( mt3.meta_key = 'bo_select_type' AND CAST(mt3.meta_value AS CHAR) = '5952' ) OR ( mt3.meta_key = 'bo_select_type' AND CAST(mt3.meta_value AS CHAR) = '1990' ) OR ( mt3.meta_key = 'bo_select_type' AND CAST(mt3.meta_value AS CHAR) = '548' ) ) ) ) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC,rand_ind LIMIT 0, 30

Znaleźliśmy 2 jachty spełniające kryteria



ID Yacht
#00001705
Revier
Masuren
Liegeplatz
Ruciane-Nida
Kojen
8
Kabinen
3
Baujahr
2016
Länge
8,21m
Ausstatung: Installation 220V in Port, Eine Reihe von Küchentöpfe, Heizung, Kühlschrank, Die Installation von Trinkwasser, Gasherd, Radio, Zigarettenanzünderbuchse
ID Yacht
#00000815
Revier
Masuren
Liegeplatz
Ruciane-Nida
Kojen
8
Kabinen
3
Baujahr
2014
Länge
8,21m
Ausstatung: Installation 220V in Port, Eine Reihe von Küchentöpfe, Heizung, Kühlschrank, Die Installation von Trinkwasser, Gasherd, Radio, Zigarettenanzünderbuchse