SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}Teuchern{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}' OR prCity = 'Teuchern' OR prZip = 'Teuchern' OR prStreet LIKE '{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}Teuchern{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}' OR prCountry = 'Teuchern') AND (prLocation LIKE '{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}Germany{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}Germany{35d1acb4e4377ecb79bbd49b05c777a55cb1763d96fc31719c5c9e03a7cd1f6e}' OR prCountry = 'Germany')