Title: SQL error?
Last modified: July 12, 2021

---

# SQL error?

 *  Resolved [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sql-error-49/)
 * I commented this on the video slider, so thanks to [@richteam](https://wordpress.org/support/users/richteam/)
   for letting me know it was the wrong place!
    __________________
 * Hi,
 * I’m getting a 500 error that seems to go back to these (2?) SQL queries from 
   Rich-Web-Slider-Widget.php file. Here are the debug logs:
 *     ```
       [08-Jul-2021 18:51:00 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 '= ''' at line 1 for query SELECT * FROM wp_ WHERE  = ''  made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/thistheme/page.php'), get_template_part, locate_template, load_template, require('/themes/thistheme/templates/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, Rich_Web_Slider_ID, Rich_Web_Draw_Short_Slider, Rich_Web_Photo_Slider->widget
   
       [08-Jul-2021 18:51:00 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 '= ''' at line 1 for query SELECT * FROM wp__Loader WHERE  = '' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/thistheme/page.php'), get_template_part, locate_template, load_template, require('/themes/thistheme/templates/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, Rich_Web_Slider_ID, Rich_Web_Draw_Short_Slider, Rich_Web_Photo_Slider->widget
       ```
   
 * Help? It seems $query_array[0] is blank, and maybe that’s why it 500’d?
 * On further inspection, did one of the updates delete all the photos from the 
   one matching [Rich_Web_Slider id=”1″]?
 * In the admin menu, it says it has 4 images, but it doesn’t show any from the 
   edit slider page.
 * If I change the slider ID to one that isn’t acting weird, it works. The problem
   seems to be that Slider ID #1 got screwed up and doesn’t remember it has 4 images.
 * Any idea how I can re-map it to the correct images? Thanks!

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

 *  Plugin Author [richteam](https://wordpress.org/support/users/richteam/)
 * (@richteam)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sql-error-49/#post-14656008)
 * Dear chenryahts
 * Thank you for the topic.
 * We solved the problem. Our team will updating the slider today. Please update
   the new version.
 * We’ll all do to solve the problem.
 * Best, Rich-Web
 *  Thread Starter [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/sql-error-49/#post-14656541)
 * Awesome! Thanks!

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

The topic ‘SQL error?’ is closed to new replies.

 * ![](https://ps.w.org/slider-images/assets/icon-128x128.png?rev=1534872)
 * [Slider Carousel - Image Slider](https://wordpress.org/plugins/slider-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slider-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slider-images/)
 * [Active Topics](https://wordpress.org/support/plugin/slider-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slider-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slider-images/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/sql-error-49/#post-14656541)
 * Status: resolved