Title: SQL_CALC_FOUND_ROWS Error when performing WP_User_Query
Last modified: February 12, 2019

---

# SQL_CALC_FOUND_ROWS Error when performing WP_User_Query

 *  Resolved [dmorrocco](https://wordpress.org/support/users/dmorrocco/)
 * (@dmorrocco)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sql_calc_found_rows-error-when-performing-wp_user_query/)
 * Actual error:
 * [12-Feb-2019 10:35:33 America/New_York] WordPress database error Attempted SELECT
   FOUND_ROWS() without prior SQL_CALC_FOUND_ROWS. for query SELECT FOUND_ROWS()
   made by WP_User_Query::query
 * I’m getting this error whenever I perform a WP_User_Query while HyperDB is installed.
   I receive no error with HyperDB disabled.
 * I’m not sure what’s causing this. The query performs as expected without any 
   client errors. I’ve tried re-writing my queries, but even with the codex example,
   I get the same error with -any- WP_User_Query.
 * Thanks!
    -D

Viewing 1 replies (of 1 total)

 *  Thread Starter [dmorrocco](https://wordpress.org/support/users/dmorrocco/)
 * (@dmorrocco)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/sql_calc_found_rows-error-when-performing-wp_user_query/#post-11199237)
 * Oops. Error on my end. Disregard.

Viewing 1 replies (of 1 total)

The topic ‘SQL_CALC_FOUND_ROWS Error when performing WP_User_Query’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hyperdb_33353d.svg)
 * [HyperDB](https://wordpress.org/plugins/hyperdb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hyperdb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hyperdb/)
 * [Active Topics](https://wordpress.org/support/plugin/hyperdb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hyperdb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hyperdb/reviews/)

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)
 * [wp_user_query](https://wordpress.org/support/topic-tag/wp_user_query/)

 * 1 reply
 * 1 participant
 * Last reply from: [dmorrocco](https://wordpress.org/support/users/dmorrocco/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/sql_calc_found_rows-error-when-performing-wp_user_query/#post-11199237)
 * Status: resolved