Reply To: not recently active
In addition to @hnla & @henrywright, you also used a wrong function name !
Original name is function bp_core_get_last_activity
Custom name is function bea107_core_get_last_activity.
This is the function you should use.
Re-read the codex about function.php and specially the last lines marked It’s important to note