SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Calvià{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCity = 'Calvià' OR prZip = 'Calvià' OR prStreet LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Calvià{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCountry = 'Calvià') AND (prLocation LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}/{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}/{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCountry = '/') AND (prLocation LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Cala{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCity = 'Cala' OR prZip = 'Cala' OR prStreet LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Cala{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCountry = 'Cala') AND (prLocation LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Vinyes{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCity = 'Vinyes' OR prZip = 'Vinyes' OR prStreet LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Vinyes{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCountry = 'Vinyes') AND (prLocation LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Spain{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}Spain{135577d7788d32320c3250b5bdbfbe31b06e691932cc272401040fe3cd88b5a6}' OR prCountry = 'Spain')