Fatal error: Call to a member function prepare() on a non-object in

Fatal error: Call to a member function prepare() on a non-object in