I'm developing a wordpress plugin for wordpress3..1.I've produced two tables wordpress_subscription_options &lifier wordpress_user_plans while activate the wordpress plugin. I've produced admin interface using html in order to save wordpress plugin setting into wordpress_subscription_options table. i've produced two php files 1.menu.php &lifier addoptions.php under wordpress wordpress plugin directory. I wish to publish the shape to addoption.php to keep values in wordpress_subscription_options table. by using this query :

global $wpdb $result = $wpdb->query( $wpdb->prepare( " Place INTO $table_title ( title, season, copyright, description, path ) VALUES ( %s, %s, %s, %s, %s )", $galleryData['name'], $galleryData['season'], $galleryData['copyright'], $galleryData['description'], $galleryData['path'] ) )

facing this error: fatal error: Call to some member function query() on the non-object.

plz assist me to. thanks