Getting logged in user rep points to be displayed in sidebar

Team,
I am looking to get the rep points displayed in the sidebar of QNA using PHP code.

Tried the below code but it always shows 0.

<?php
echo 'Your Reputation:';
echo the_qa_user_rep( $user_id);
?>

Thanks
Thomas