added null to socialprofile.last_query