Title: SQL syntax
Last modified: May 6, 2021

---

# SQL syntax

 *  [nosaint](https://wordpress.org/support/users/nosaint/)
 * (@nosaint)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-syntax/)
 * [Thu May 06 15:51:30.528843 2021] [proxy_fcgi:error] [pid 1446:tid 140280158164736][
   client 52.2.74.251:0] AH01071: Got error ‘PHP message: 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 ‘defer onload=” AND redirect
   IS NOT NULL LIMIT 0,1’ at line 1 for query SELECT redirect, options FROM can_404_to_301
   WHERE url = ‘/sellers.json’ defer onload=” AND redirect IS NOT NULL LIMIT 0,1
   made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.
   php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters,
   JJ4T3_404_Actions->handle_404, JJ4T3_404_Actions->set_options’, referer: [https://futbolme.com/sellers.json](https://futbolme.com/sellers.json)
 * Any idea what this error is all about?

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

 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-syntax/#post-14408744)
 * Hey [@nosaint](https://wordpress.org/support/users/nosaint/),
 * Can you try uninstalling the plugin and install again? Seems like your DB table
   for the plugin is broken.
    -  This reply was modified 5 years, 1 month ago by [Joel James](https://wordpress.org/support/users/joelcj91/).
 *  Thread Starter [nosaint](https://wordpress.org/support/users/nosaint/)
 * (@nosaint)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-syntax/#post-14409465)
 * On installation, it throws
 * `[Thu May 06 23:02:58.476346 2021] [proxy_fcgi:error] [pid 2442:tid 140280275662592][
   client IP:0] AH01071: Got error 'PHP message: PHP Warning: set_time_limit() has
   been disabled for security reasons in /home/public/wp-admin/includes/class-wp-
   upgrader.php on line 471PHP message: PHP Warning: set_time_limit() has been disabled
   for security reasons in /home/public/wp-admin/includes/class-wp-upgrader.php 
   on line 471', referer: https://domain/wp-admin/plugin-install.php?s=404%20to%
   20301&tab=search&type=term`
 * On activation, it throws
 * [Thu May 06 23:03:10.233085 2021] [proxy_fcgi:error] [pid 2442:tid 140278891521792][
   client IP:0] AH01071: Got error ‘PHP message: activated’, referer: [https://domain/wp-admin/plugin-install.php?s=404%20to%20301&tab=search&type=term](https://domain/wp-admin/plugin-install.php?s=404%20to%20301&tab=search&type=term)
 * On accessing domain/sellers.json it throws
    `[Thu May 06 23:03:42.967693 2021][
   proxy_fcgi:error] [pid 2442:tid 140280099481344] [client IP:0] AH01071: Got error'
   PHP message: 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 'defer onload='' AND redirect IS NOT NULL LIMIT 0,1' at line 1 for
   query SELECT redirect, options FROM can_404_to_301 WHERE url = '/sellers.json'
   defer onload='' AND redirect IS NOT NULL LIMIT 0,1 made by require('wp-blog-header.
   php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'),
   WP_Hook->do_action, WP_Hook->apply_filters, JJ4T3_404_Actions->handle_404, JJ4T3_404_Actions-
   >set_options'`
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sql-syntax/#post-14409897)
 * Hey [@nosaint](https://wordpress.org/support/users/nosaint/),
 * It seems like some required PHP extensions are disabled on your server. Could
   you please share the above message with your hosting team and ask them to check
   if it can be enabled?

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

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

 * ![](https://ps.w.org/404-to-301/assets/icon.svg?rev=3548123)
 * [404 to 301 - Redirect, Log and Notify 404 Errors](https://wordpress.org/plugins/404-to-301/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-to-301/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-to-301/)
 * [Active Topics](https://wordpress.org/support/plugin/404-to-301/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-to-301/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-to-301/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joel James](https://wordpress.org/support/users/joelcj91/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/sql-syntax/#post-14409897)
 * Status: not resolved