SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}Mutxamel{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}' OR prCity = 'Mutxamel' OR prZip = 'Mutxamel' OR prStreet LIKE '{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}Mutxamel{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}' OR prCountry = 'Mutxamel') AND (prLocation LIKE '{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}Spain{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}Spain{6a039d770a8013dd6292f55160222ce8e26e9eeb70cd8ed9d931bc3fd565253a}' OR prCountry = 'Spain')