Title: error Table &#8216;abc.wp_posts&#8217; doesn&#8217;t exist for query
Last modified: June 26, 2024

---

# error Table ‘abc.wp_posts’ doesn’t exist for query

 *  Resolved [juanpgarzon](https://wordpress.org/support/users/juanpgarzon/)
 * (@juanpgarzon)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-table-abc-wp_posts-doesnt-exist-for-query/)
 * Hi! In my error log, I get the following error:
 * [26-Jun-2024 05:51:10 UTC] WordPress database error Table ‘abc.wp_posts’ doesn’t
   exist for query SELECT CONCAT(`post_mime_type`, ‘O’, `comment_count`) AS `chksum`,
   post_title FROM `wp_posts` WHERE `post_type` = ‘GOTMLS_quarantine’ AND `post_status`
   = ‘pending’ made by do_action(‘wp_ajax_GOTMLS_scan’), WP_Hook->do_action, WP_Hook-
   >apply_filters, GOTMLS_ajax_scan, GOTMLS_scandir, GOTMLS_check_file, GOTMLS_scanfile,
   GOTMLS_load_contents
 * But my table is `abc.cpe_posts`, not `abc.wp_posts`.
 * How can I fix this? Does it affect the functionality of my plugin in any way?
 * Thank you, and congratulations on such a wonderful plugin.

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

 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-table-abc-wp_posts-doesnt-exist-for-query/#post-17851424)
 * Thanks for reporting this error. I will not prevent the plugin from finding treats,
   it will only bypass the custom whitelist (if you have whitelisted any file), 
   but I will have this fixed in my next release.
 * If you want to fix this in your current copy you would only need to change the
   table name wp_posts to $wpdb->posts in the query on line 116 of wp-content/plugins/
   gotmls/safe-load/trace.php
 *  Thread Starter [juanpgarzon](https://wordpress.org/support/users/juanpgarzon/)
 * (@juanpgarzon)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/error-table-abc-wp_posts-doesnt-exist-for-query/#post-17851738)
 * Works! Thanks a lot

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

The topic ‘error Table ‘abc.wp_posts’ doesn’t exist for query’ is closed to new 
replies.

 * ![](https://ps.w.org/gotmls/assets/icon-256x256.png?rev=1001824)
 * [Anti-Malware Security and Brute-Force Firewall](https://wordpress.org/plugins/gotmls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gotmls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gotmls/)
 * [Active Topics](https://wordpress.org/support/plugin/gotmls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gotmls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gotmls/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [juanpgarzon](https://wordpress.org/support/users/juanpgarzon/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/error-table-abc-wp_posts-doesnt-exist-for-query/#post-17851738)
 * Status: resolved