SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Lloret{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCity = 'Lloret' OR prZip = 'Lloret' OR prStreet LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Lloret{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCountry = 'Lloret') AND (prLocation LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}de{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCity = 'de' OR prZip = 'de' OR prStreet LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}de{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCountry = 'de') AND (prLocation LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Mar{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCity = 'Mar' OR prZip = 'Mar' OR prStreet LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Mar{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCountry = 'Mar') AND (prLocation LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Spain{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}Spain{96055dc439bb53286de93b4fe3e41bcc65fa7fc106fbe6248911d4836863ace4}' OR prCountry = 'Spain')