SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}Lissabon{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}' OR prCity = 'Lissabon' OR prZip = 'Lissabon' OR prStreet LIKE '{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}Lissabon{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}' OR prCountry = 'Lissabon') AND (prLocation LIKE '{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}Portugal{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}' OR prCity = 'Portugal' OR prZip = 'Portugal' OR prStreet LIKE '{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}Portugal{50d543231567f0c1f3f7fddd2218ba3e6573658de5c4d0394fd2c5ce87e52751}' OR prCountry = 'Portugal')