SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Bad{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Bad{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCountry = 'Bad') AND (prLocation LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Neuenahr-Ahrweiler{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCity = 'Neuenahr-Ahrweiler' OR prZip = 'Neuenahr-Ahrweiler' OR prStreet LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Neuenahr-Ahrweiler{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCountry = 'Neuenahr-Ahrweiler') AND (prLocation LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Germany{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}Germany{d22430025876808ab9eb5791b26f6fe598affa88cfaf99dd77908ffbec197f21}' OR prCountry = 'Germany')