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 ) 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_en' AND ( ( ( mt1.meta_key = 'bo_port_val' AND CAST(mt1.meta_value AS CHAR) = '87' ) ) AND ( ( mt2.meta_key = 'bo_select_type' AND CAST(mt2.meta_value AS CHAR) = '512' ) OR ( mt2.meta_key = 'bo_select_type' AND CAST(mt2.meta_value AS CHAR) = '4321' ) OR ( mt2.meta_key = 'bo_select_type' AND CAST(mt2.meta_value AS CHAR) = '1372' ) ) ) ) GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value ASC,rand_ind LIMIT 0, 30

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



Yacht ID
#00004440
Marine area
Masuria
Port
Giżycko
No. of berths
8
No. of cabins
3
Year of bulding
2010
Yacht lenght
9,00m
Equipment: Depth sounder, Steering-wheel, Bow thruster , Installation 220V in port, Set of kitchen pots, Heating, Fridge, Hot water, Installation of outboard water, Installation of drinking water, Gas cooker, DVD, TV, Radio, Lighter socket
Yacht ID
#00004757
Marine area
Masuria
Port
Giżycko
No. of berths
8
No. of cabins
2
Year of bulding
2011
Yacht lenght
8,23m
Equipment: Installation 220V in port, Set of kitchen pots, Heating, Fridge, Installation of drinking water, Gas cooker, Radio, Lighter socket
Yacht ID
#00004788
Marine area
Masuria
Port
Giżycko
No. of berths
8
No. of cabins
2
Year of bulding
2012
Yacht lenght
8,23m
Equipment: Installation 220V in port, Set of kitchen pots, Heating, Fridge, Installation of drinking water, Gas cooker, Radio, Lighter socket
Yacht ID
#00002264
Marine area
Masuria
Port
Giżycko
No. of berths
7
No. of cabins
1
Year of bulding
2008
Yacht lenght
7,8m
Equipment: Reservoir maps , Set of kitchen pots, Installation of drinking water, Gas cooker, Radio, Lighter socket