SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}San{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCity = 'San' OR prZip = 'San' OR prStreet LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}San{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCountry = 'San') AND (prLocation LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}Javier{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCity = 'Javier' OR prZip = 'Javier' OR prStreet LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}Javier{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCountry = 'Javier') AND (prLocation LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}Spain{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}Spain{a685598f16eb54fba6987551ea973fcc042171db45aa1491f7f1220bf376982a}' OR prCountry = 'Spain')