Fixes #3617 : correct the sql query to display last seen for a node