db_fetch_object no longer in Drupal 7 Now its completely new database API has been added Drupal 7 introduces a completely new database API, utilizing a number of dynamic query builders and formal prepared statements. The following Drupal 6 functions and hooks were removed: db_affected_rows ( ), db_distinct_field ( ), db_error ( ), db_last_insert_id ( ), db_placeholders ( ), db_lock_table ( ), db_prefix_tables ( ), db_result ( ), db_fetch_* ( ), db_version ( ), db_rewrite_sql ( ), hook_db_rewrite_sql ( ), pager_query ( ), tablesort_sql ( ), and others. For full information, read the Database API guide.