added a default to socailprofile.last_query