Title: NextGen Widget SQL Error
Last modified: August 21, 2016

---

# NextGen Widget SQL Error

 *  [PowieT](https://wordpress.org/support/users/powiet/)
 * (@powiet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/nextgen-widget-sql-error/)
 * I use the Nextgen Widget to display random images on a sidebar.
 * Since Update 2.0.x this Display’s an error:
 * > 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 ‘) ORDER BY RAND() LIMIT 9’ at line 1]
   >  SELECT `pid` FROM `wp_ngg_pictures`
   > WHERE `exclude` = 0 AND `galleryid` IN () ORDER BY RAND() LIMIT 9
 * You can view this live @ [http://www.singen-thueringen.de](http://www.singen-thueringen.de)
 * nevertheless. the images are displayed…..!!!
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

The topic ‘NextGen Widget SQL Error’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [PowieT](https://wordpress.org/support/users/powiet/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/nextgen-widget-sql-error/)
 * Status: not resolved