Title: Database error &#8211; EM_WPML::get_translation_source()
Last modified: August 20, 2016

---

# Database error – EM_WPML::get_translation_source()

 *  [majo.kmet](https://wordpress.org/support/users/majokmet/)
 * (@majokmet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-em_wpmlget_translation_source/)
 * Hello,
 * I’ve found lots of EM_WPML errors in my error.log. Everything seems to be working
   fine, but there’s some problem with EM_WPML::get_translation_source(). I’ve tried
   to use standard WordPress template, but it didn’t help.
 *     ```
       [Tue Feb 05 14:51:43 2013] [error] [client 66.249.78.21] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/single.php'), get_footer, locate_template, load_template, require_once('/themes/newsroom14/footer.php'), wp_nav_menu, walk_nav_menu_tree, call_user_func_array, Walker->walk, Walker->display_element, call_user_func_array, Walker_Nav_Menu->start_el, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source
   
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_events_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_events_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_events_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_events_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_events_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_locations_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       [Tue Feb 05 15:11:38 2013] [error] [client 88.212.34.143] 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 'AND language_code='en'' at line 1 for query SELECT element_id FROM wp_icl_translations WHERE trid= AND language_code='en' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/newsroom14/archive.php'), get_template_part, locate_template, load_template, require('/themes/newsroom14/_loop.php'), the_title, get_the_title, apply_filters('the_title'), call_user_func_array, em_wp_the_title, get_option, apply_filters('option_dbem_edit_bookings_page'), call_user_func_array, EM_WPML::get_translated_page, EM_WPML::get_translation_source, referer: http://MYWEBPAGE/
       ```
   
 * WordPress 3.5.1
    Event Manager 5.3.5 WPML Multilingual CMS 2.6.3
 * [http://wordpress.org/extend/plugins/events-manager-wpml/](http://wordpress.org/extend/plugins/events-manager-wpml/)

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

 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-em_wpmlget_translation_source/#post-3437715)
 * maybe the latest version fixes this (update both WPML and this compat plugin)?
 *  Thread Starter [majo.kmet](https://wordpress.org/support/users/majokmet/)
 * (@majokmet)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-em_wpmlget_translation_source/#post-3437716)
 * It seems that problem is solved after update. thank you!

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

The topic ‘Database error – EM_WPML::get_translation_source()’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/events-manager-wpml.svg)
 * [Events Manager and WPML Compatibility](https://wordpress.org/plugins/events-manager-wpml/)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager-wpml/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager-wpml/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager-wpml/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager-wpml/reviews/)

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [majo.kmet](https://wordpress.org/support/users/majokmet/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-em_wpmlget_translation_source/#post-3437716)
 * Status: not resolved