Error thrown

Object of class WP_User could not be converted to string