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