Rita sat on the corner of the table --- the door.

Answer: 
beside
Rita sat on the corner of the table --- the door.