Title: NextGEN 2.0.59  SQL syntax Error (?)
Last modified: August 21, 2016

---

# NextGEN 2.0.59 SQL syntax Error (?)

 *  [juannito](https://wordpress.org/support/users/juannito/)
 * (@juannito)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/nextgen-2059-sql-syntax-error/)
 * Hi, i am having this error in my logs. Anybody knows how it solvit?
 * mod_fcgid: stderr: 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‘-
   20, 20’ at line 1 de la base de datos de WordPress para la consulta SELECT DISTINCT
   wp_ngg_pictures.* , GROUP_CONCAT(CONCAT_WS(‘@@’, meta_key, meta_value)) AS ‘extras’
   FROM `wp_ngg_pictures` LEFT OUTER JOIN `wp_postmeta` ON `wp_postmeta`.`post_id`
   = `extras_post_id` WHERE (`exclude` = 0) AND (`galleryid` IN (101)) GROUP BY 
   wp_ngg_pictures.pid ORDER BY ABS(`filename`) ASC, `filename` ASC LIMIT -20, 20
   realizada por require(‘wp-blog-header.php’), require_once(‘wp-includes/template-
   loader.php’), include(‘/themes/tmaxnews/single.php’), the_content, apply_filters(‘
   the_content’), call_user_func_array, C_NextGen_Shortcode_Manager->parse_content,
   do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, M_NextGen_Basic_Gallery-
   >render, C_Displayed_Gallery_Renderer->display_images, ExtensibleObject->__call,
   ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Displayed_Gallery_Renderer-
   >display_images, C_Displayed_Gallery_Renderer->render, ExtensibleObject->__call,
   ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Displayed_Gallery_Renderer-
   >render, C_Display_Type_Controller->index_action, C_Display_Type_Controller->
   __call, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method, ReflectionMethod-
   >invokeArgs, A_NextGen_Basic_Thumbnails_Controller->index_action, C_Displayed_Gallery-
   >get_included_entities, ExtensibleObject->__call, ExtensibleObject->_exec_cached_method,
   ReflectionMethod->invokeArgs, Mixin_Displayed_Gallery_Queries->get_included_entities,
   C_Displayed_Gallery->get_entities, ExtensibleObject->__call, ExtensibleObject-
   >_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Displayed_Gallery_Queries-
   >get_entities, C_Displayed_Gallery->_get_image_entities, ExtensibleObject->__call,
   ExtensibleObject->_exec_cached_method, ReflectionMethod->invokeArgs, Mixin_Displayed_Gallery_Queries-
   >_get_image_entities, C_Image_Mapper->run_query, ExtensibleObject->__call, ExtensibleObject-
   >_exec_cached_method, ReflectionMethod->invokeArgs, C_CustomTable_DataMapper_Driver_Mixin-
   >run_query
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/nextgen-2059-sql-syntax-error/#post-4774180)
 * [@juannito](https://wordpress.org/support/users/juannito/) – Do these errors 
   recur if you use the latest release, 2.0.61?
 * Thanks!
 * – Cais.

Viewing 1 replies (of 1 total)

The topic ‘NextGEN 2.0.59 SQL syntax 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/nextgen-2059-sql-syntax-error/#post-4774180)
 * Status: not resolved