SELECT p.ID, p.post_content, p.post_title, p.post_name, p.post_author, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_type_bien') AS type_bien, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_reference') AS reference, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_cp') AS cp, SUBSTRING((SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_cp'), 1, 2) AS departement, LCASE((SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_ville')) AS ville, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_prix') AS prix, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_surface_habitable') AS surface_habitable, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_surface_terrain') AS surface_terrain, (SELECT meta_value FROM lebondil_postmeta WHERE post_id = p.ID AND meta_key = '_lebondil_hektor_chambres') AS chambres FROM lebondil_posts AS p WHERE post_status = 'publish' AND post_type = 'bien' HAVING cp IN ("33580") AND ville IN ("dieulivol") AND type_bien IN ("Maison", "Propriete", "Chalet", "Villa", "Maison De Village", "Ferme","Château","Bastide" ) AND (chambres IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) OR chambres > 5 OR chambres = "") AND (prix >= 1)

Aucun bien trouvé dans le secteur recherché