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