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