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