SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Bad{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Bad{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCountry = 'Bad') AND (prLocation LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Herrenalb{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCity = 'Herrenalb' OR prZip = 'Herrenalb' OR prStreet LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Herrenalb{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCountry = 'Herrenalb') AND (prLocation LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Germany{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}Germany{80bb1cd09fcbd6c538cbb8e603576c0b58c0e2410879cfaa6d2df7f06986c0a4}' OR prCountry = 'Germany')