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