Title: Error updating user profile &#8211; invalid SQL
Last modified: March 30, 2026

---

# Error updating user profile – invalid SQL

 *  Resolved [bluesix](https://wordpress.org/support/users/bluesix/)
 * (@bluesix)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/)
 * `[30-Mar-2026 03:37:50 UTC] WordPress database error Unknown column 'meta_id'
   in 'SELECT' for query SELECT meta_id, meta_value FROM wp_usermeta WHERE post_id
   = 1363 AND meta_key LIKE 'rank_math_schema%' made by require('wp-blog-header.
   php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'),
   WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->
   serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, 
   RankMath\Rest\Shared->update_metadata, RankMath\Schema\DB::get_schemas, RankMath\
   Admin\Database\Query_Builder->get, RankMath\Admin\Database\Query_Builder->get_results,
   RankMath\Admin\Database\Query_Builder->run`
 * There is no post_id in the usermeta table.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [Jeremy](https://wordpress.org/support/users/jeremrm/)
 * (@jeremrm)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18867604)
 * Hello [@bluesix](https://wordpress.org/support/users/bluesix/),
 * Thank you for your query and we are so sorry about the trouble this must have
   caused.
 * The error occurs because Rank Math is trying to query `post_id` in the `wp_usermeta`
   table, which doesn’t exist there. Sometimes this can be caused by schema data
   for a post that is corrupted or in an invalid format.
 * As an initial step, you can back up your database and then manually delete the
   schema associated with the affected post in the database. If the issue persists
   after that, please let us know and we’ll investigate further.
 * Let us know how that goes.
 *  Thread Starter [bluesix](https://wordpress.org/support/users/bluesix/)
 * (@bluesix)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18867715)
 * Where is the schema data stored for users (this doesn’t affect posts)? I’m not
   seeing it in wp_usermeta.
 *  Plugin Support [Jaideep Asrani](https://wordpress.org/support/users/jaideeprm/)
 * (@jaideeprm)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18869046)
 * Hello [@bluesix](https://wordpress.org/support/users/bluesix/),
 * The issue is related to some corrupted database entries for our plugin’s options.
   Please follow these steps:
    1. Add the following filter to your active theme’s functions.php file:
       `add_filter("
       pre_update_option_rank-math-options-sitemap", function( $value, $old_value, 
       $option ){ unset($value['exclude_roles']); return $value; }, 10, 3 );`
    2. Navigate to WP Dashboard > Rank Math SEO > Sitemap Settings > Author Sitemap
       and make any small change to the Exclude Roles option and save the settings.
    3. Remove the filter from the functions.php file.
 * That should fix the issue. Let us know if it doesn’t.
 * We are here to assist.
 *  Plugin Support [Rakibuzzaman Siam](https://wordpress.org/support/users/rakibuzzamansiam1/)
 * (@rakibuzzamansiam1)
 * [2 months ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18872419)
 * Hello [@bluesix](https://wordpress.org/support/users/bluesix/),
    Since we have
   not heard back from you, we are going to close this thread for now. If you still
   need any assistance, please feel free to reopen this thread or create a new one,
   and we will be happy to help. Thank you.
 *  [manos2000](https://wordpress.org/support/users/manos2000/)
 * (@manos2000)
 * [2 months ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18874519)
 * Can confirm that happens at all wp sites i have with 1.0.266.1 and 267. I think
   your query is wrong , at usermeta table there is no meta_id column, it is umeta_id.
 * Please fix asap
 * PS Can roll back to 265 but can not find the correspondent premium version, should
   also have a way to downlaod older premium versions
 *  [manos2000](https://wordpress.org/support/users/manos2000/)
 * (@manos2000)
 * [2 months ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18874523)
 * There is no  Author Sitemap  option at these versions at least for me and i checked
   many sites
 * Temporary solution:
 * Rnk Math > Titles & Meta > Authors > disable Add SEO Controls and user profile
   saved ok without error at logs
 * As i wrote there is problematic query, should use umeta_id not meta_id
 *  Thread Starter [bluesix](https://wordpress.org/support/users/bluesix/)
 * (@bluesix)
 * [2 months ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18874541)
 * Also not seeing any reference to Author sitemaps on my end.
 *  [mariland01](https://wordpress.org/support/users/mariland01/)
 * (@mariland01)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18877016)
 * Same issue here [https://wordpress.org/support/topic/user-profile-can-be-edited-after-latest-free-version-update/](https://wordpress.org/support/topic/user-profile-can-be-edited-after-latest-free-version-update/)
 * also not fixed in the newest version.
 *  Plugin Support [Jeremy](https://wordpress.org/support/users/jeremrm/)
 * (@jeremrm)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18878213)
 * Hello [@manos2000](https://wordpress.org/support/users/manos2000/), [@bluesix](https://wordpress.org/support/users/bluesix/),
   [@mariland01](https://wordpress.org/support/users/mariland01/),
 * We will need to check this further on your site. Please email our support team
   at [support@rankmath.com](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/support@rankmath.com?output_format=md)
   so we can assist you further.
 * Looking forward to helping you.

Viewing 9 replies - 1 through 9 (of 9 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-updating-user-profile-invalid-sql%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 11 replies
 * 6 participants
 * Last reply from: [Jeremy](https://wordpress.org/support/users/jeremrm/)
 * Last activity: [1 month, 3 weeks ago](https://wordpress.org/support/topic/error-updating-user-profile-invalid-sql/#post-18878213)
 * Status: resolved