Title: SQL error when exporting logs
Last modified: December 16, 2025

---

# SQL error when exporting logs

 *  Resolved [paservice](https://wordpress.org/support/users/paservice/)
 * (@paservice)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/)
 * When I try to export logs from Simple Download Monitor I get the following 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 ‘LIMIT 0, 100’ at line
   1
 * This happens whether I try to export them from the Main Logs page or the Specific
   Item Logs page. The Export page works fine.

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

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18761638)
 * Thank you for reaching out to us. What plugin version are you running? What WordPress
   version are you running in your site? What database version is your server running?
   What PHP version is your site running?
 * Kind regards.
 *  Thread Starter [paservice](https://wordpress.org/support/users/paservice/)
 * (@paservice)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18762564)
 * Hi there, thank you for your response. We’re running version 4.02 of the plugin,
   version 6.9 of WordPress, MariaDB 10.5.29 and PHP 8.4.
 * I’m also having a problem with bots downloading the files even though I have 
   Turnstile enabled.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18762858)
 * Thank you for sharing that information. I have submitted a message to the developers
   to investigate further your issue.
 * Kind regards.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18826624)
 * Hello, I am just touching base with you. Are you still having this issue?
 * Regards.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [2 months ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18860552)
 * I have not heard from you for a while. I am marking this thread as resolved.
 * Thank you.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsql-error-when-exporting-logs%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/simple-download-monitor/assets/icon-128x128.png?rev=973803)
 * [Simple Download Monitor](https://wordpress.org/plugins/simple-download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-download-monitor/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/sql-error-when-exporting-logs/#post-18860552)
 * Status: resolved