Error – WordPress database error You have an error in your SQL syntax
-
Tons of this error in my error logs.
[Thu May 01 10:26:38 2014] [8553253] [fcgid:warn] [client 72.167.191.15:46955] mod_fcgid: stderr: 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 '-20, 20' at line 1 for query SELECT DISTINCT gtcwfpt_ngg_pictures.* , GROUP_CONCAT(CONCAT_WS('@@', meta_key, meta_value)) AS 'extras' FROM
gtcwfpt_ngg_picturesLEFT OUTER JOIN
gtcwfpt_postmetaON
gtcwfpt_postmeta.
post_id=
extras_post_idWHERE (
exclude= 0) AND (
galleryidIN (17)) GROUP BY gtcwfpt_ngg_pictures.pid ORDER BY ABS(
sortorder) ASC,
sortorder` ASC LIMIT -20, 20 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/arras-theme/page.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, referer https://fifteen52.us/gallery/cast-tarmacs/nggallery/page/page/3
`
- The topic ‘Error – WordPress database error You have an error in your SQL syntax’ is closed to new replies.