SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}Thomasburg{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}' OR prCity = 'Thomasburg' OR prZip = 'Thomasburg' OR prStreet LIKE '{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}Thomasburg{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}' OR prCountry = 'Thomasburg') AND (prLocation LIKE '{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}Germany{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}Germany{c60f12ff0bff8d28e87dab5ed2b9a50eb7facd4bc9c247b97f6cda9f329fb983}' OR prCountry = 'Germany')