SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Andratx{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCity = 'Andratx' OR prZip = 'Andratx' OR prStreet LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Andratx{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCountry = 'Andratx') AND (prLocation LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}/{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}/{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCountry = '/') AND (prLocation LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Sant{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCity = 'Sant' OR prZip = 'Sant' OR prStreet LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Sant{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCountry = 'Sant') AND (prLocation LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Elm{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCity = 'Elm' OR prZip = 'Elm' OR prStreet LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Elm{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCountry = 'Elm') AND (prLocation LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Spain{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}Spain{e38e9e73b135906aeb91ba99329aa22e929e6dea4f7c8a20f7a8227dbb9be57c}' OR prCountry = 'Spain')