Battery charge suddenly drops to 0% even when plugged into mains (Mid 2009 15″ MacBook Pro)
Your problem is (or was) your Power Adapter. 

45W that's enough for a MacBook Air but definitely not for a 15" MacBook Pro. 

Apple shipped a 60W or 85W power adapter with these MacBook Pro (depending on the processor)