SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Cala{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCity = 'Cala' OR prZip = 'Cala' OR prStreet LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Cala{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCountry = 'Cala') AND (prLocation LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Vinyas{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCity = 'Vinyas' OR prZip = 'Vinyas' OR prStreet LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Vinyas{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCountry = 'Vinyas') AND (prLocation LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Spain{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}Spain{ee5b9790ed3d255859286058d0fb826ce1d821477438cb333b3d313bfa906eb0}' OR prCountry = 'Spain')