Title: SQL bug
Last modified: November 26, 2024

---

# SQL bug

 *  Resolved [sisrael](https://wordpress.org/support/users/sisrael/)
 * (@sisrael)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/sql-bug-2/)
 * Hi! Love your plugin. We’re getting this error in our PHP logs on a large multisite
   installation:
 *     ```wp-block-code
       26-Nov-2024 14:02:46 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS ssa WHERE ssa.action_id NOT IN (SELECT asa.action_id FROM wp_98_actionsch...' at line 1 for query DELETE FROMwp_98_ppfuture_workflow_scheduled_stepsAS ssa WHERE ssa.action_id NOT IN (SELECT asa.action_id FROMwp_98_actionscheduler_actions` AS asa) made by do_action_ref_array('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_Abstract_QueueRunner->process_action, ActionScheduler_Action->execute, do_action_ref_array('publishpressfuture_cleanup_finished_scheduled_steps'), WP_Hook->do_action, WP_Hook->apply_filters, PublishPress\Future\Modules\Workflows\Controllers\ScheduledActions->deleteExpiredScheduledSteps, PublishPress\Future\Modules\Workflows\Models\ScheduledActionsModel->deleteExpiredScheduledSteps, PublishPress\Future\Modules\Workflows\Models\ScheduledActionsModel->deleteOrphanWorkflowArgs
       ```
   
 * We are on WordPress 6.6.2 and can’t upgrade for a few more days. Is this related
   to the core WP and we just need to update? Or is it something in your plugin?
 * Please advise, thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsql-bug-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Marcel ECHANTILLAC](https://wordpress.org/support/users/tillac73/)
 * (@tillac73)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/sql-bug-2/#post-18166352)
 * same bug on WP 6.7.1 Get this message every day
 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/sql-bug-2/#post-18169610)
 * Hi [@sisrael](https://wordpress.org/support/users/sisrael/) [@tillac73](https://wordpress.org/support/users/tillac73/)
 * We have identified this issue and will fix this issue in the next release. Thanks
   for reporting this issue guys.

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

The topic ‘SQL bug’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/sql-bug-2/#post-18169610)
 * Status: resolved