Title: SQL error in php error log file
Last modified: November 16, 2023

---

# SQL error in php error log file

 *  Resolved [Fred17](https://wordpress.org/support/users/f14m07/)
 * (@f14m07)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/sql-error-in-php-error-log-file/)
 * Hi,
   I would inform you about this error message in my php error log :
 * Code:
 *     ```wp-block-code
       [15-Nov-2023 15:51:57 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY mod648_posts.ID
                               LIMIT 3' at line 8 for query DELETE mod648_postmeta FROM
                           mod648_postmeta
                           LEFT JOIN mod648_posts
                           ON mod648_posts.ID = mod648_postmeta.post_id
   
                               WHERE mod648_posts.post_type = 'revision'
                               AND mod648_posts.post_parent = 3087
                               ORDER BY mod648_posts.ID
                               LIMIT 3
                            made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, LiteSpeed\Core->after_user_init, LiteSpeed\Core->proceed_action, LiteSpeed\Router->handler, LiteSpeed\DB_Optm->handler, LiteSpeed\DB_Optm->_db_clean
       ```
   
 * May be this error could explain the cron job unscheduled?

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/sql-error-in-php-error-log-file/#post-17208694)
 * may I know the DB version , PHP version, mysql extension version and plugin version?
 *  Thread Starter [Fred17](https://wordpress.org/support/users/f14m07/)
 * (@f14m07)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/sql-error-in-php-error-log-file/#post-17209135)
 * WP is 6.4.1
 * Version du serveur base de données: 8.0.35 – MySQL Community Server – GPL
 * Version du client de base de données : libmysql – mysqlnd 8.1.16
 * PHP 8.1.16
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/sql-error-in-php-error-log-file/#post-17213841)
 * please create a ticket by mail to `support at litespeedtech.com` with reference
   link to this topic, we will investigate further.

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

The topic ‘SQL error in php error log file’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/sql-error-in-php-error-log-file/#post-17213841)
 * Status: resolved