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 ) 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_select_type' AND CAST(mt1.meta_value AS CHAR) = '11501' ) OR ( mt1.meta_key = 'bo_select_type' AND CAST(mt1.meta_value AS CHAR) = '544' ) OR ( mt1.meta_key = 'bo_select_type' AND CAST(mt1.meta_value AS CHAR) = '4596' ) OR ( mt1.meta_key = 'bo_select_type' AND CAST(mt1.meta_value AS CHAR) = '1373' ) ) ) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC,rand_ind LIMIT 0, 30

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



ID Yacht
#00000779
Revier
Masuren
Liegeplatz
Ruciane-Nida
Kojen
8
Kabinen
1
Baujahr
2010
Länge
7,18m
Ausstatung: Installation 220V in Port, Eine Reihe von Küchentöpfe, Heizung, Kühlschrank, Die Installation von Trinkwasser, Gasherd, Radio, Zigarettenanzünderbuchse
ID Yacht
#00000765
Revier
Masuren
Liegeplatz
Ruciane-Nida
Kojen
8
Kabinen
1
Baujahr
2007
Länge
7,18m
Ausstatung: Installation 220V in Port, Eine Reihe von Küchentöpfe, Heizung, Kühlschrank, Die Installation von Trinkwasser, Gasherd, Radio, Zigarettenanzünderbuchse
ID Yacht
#00001997
Revier
Masuren
Liegeplatz
Mikołajki
Kojen
8
Kabinen
1
Baujahr
Länge
7,18m
Ausstatung: Installation 220V in Port, Eine Reihe von Küchentöpfe, Die Installation von Trinkwasser, Gasherd, Radio, Zigarettenanzünderbuchse