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