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