navindra unless you have some advanced MySQL tools, this will be tricky.
If you delete only the users table and restore a new version on top, you need to make sure to disable integrity constraints during the operation or MySQL will delete a lot of other records from other tables and those will be lost.
And just restoring the users (even manually re-creating the rows in the database) won't fix the relation between users and posts, if you want to restore those as well, you will almost certainly need to restore the entire database.
You could manually re-create the user and manually re-assign posts to the user, either with the same user ID as before or a new ID, it doesn't really matter at that point because the integrity constraints will have removed all traces of the old ID from the database.