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