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