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_en' AND ( ( mt1.meta_key = 'bo_select_type' AND CAST(mt1.meta_value AS CHAR) = '5325' ) OR ( mt1.meta_key = 'bo_select_type' AND CAST(mt1.meta_value AS CHAR) = '1709' ) ) ) 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



Yacht ID
#00005627
Marine area
Masuria
Port
Giżycko
No. of berths
8
No. of cabins
2
Year of bulding
2014
Yacht lenght
8,3m
Equipment: Reservoir maps , Radio VHF/UKF, Depth sounder, Steering-wheel, Installation 220V in port, Set of kitchen pots, Heating, Fridge, Installation of drinking water, Gas cooker, TV, Radio, Lighter socket
Yacht ID
#00001968
Marine area
Masuria
Port
Giżycko
No. of berths
6
No. of cabins
1
Year of bulding
2004
Yacht lenght
6,78m
Equipment: Set of kitchen pots, Installation of drinking water, Gas cooker, Radio, Lighter socket