Title: php WP database error
Last modified: May 22, 2020

---

# php WP database error

 *  [mbeerli](https://wordpress.org/support/users/mbeerli/)
 * (@mbeerli)
 * [6 years ago](https://wordpress.org/support/topic/php-wp-database-error/)
 * in the php error.log file I found this today.
    I think all I did was the following
   under Transposh – Utilities – “Attempt to fix errors caused by previous versions”
   and a backup before that.
 * [22-May-2020 14:29:40 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 ‘UNION SELECT original, lang, translated, translated_by,
   UNIX_TIMESTAMP(timestamp’ at line 1 for query SELECT original, lang, translated,
   translated_by, UNIX_TIMESTAMP(timestamp) as timestamp FROM wp_translations_log
   WHERE source= 0 and UNIX_TIMESTAMP(timestamp) > UNION SELECT original, lang, 
   translated, translated_by, UNIX_TIMESTAMP(timestamp) as timestamp FROM wp_translations
   WHERE source= 0 and UNIX_TIMESTAMP(timestamp) > ORDER BY timestamp ASC LIMIT 
   100 made by do_action(‘wp_ajax_tp_backup’), WP_Hook->do_action, WP_Hook->apply_filters,
   transposh_plugin_admin->on_ajax_tp_backup, transposh_plugin->run_backup, transposh_backup-
   >do_backup, transposh_database->get_all_human_translation_history

The topic ‘php WP database error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/transposh-translation-filter-for-
   wordpress_495166.svg)
 * [Transposh WordPress Translation](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mbeerli](https://wordpress.org/support/users/mbeerli/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/php-wp-database-error/)
 * Status: not resolved