Title: Database Error with the Latest Plugin Update
Last modified: October 16, 2022

---

# Database Error with the Latest Plugin Update

 *  [jjfc](https://wordpress.org/support/users/jjfc/)
 * (@jjfc)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-error-with-the-latest-plugin-update/)
 * There’s an error showing in Query Monitor:
    Query: DESCRIBE IF;
 * Caller:
    BeRocket_products_label_better_position::init() wp-content/plugins/woocommerce-
   advanced-products-labels/includes/better_position.php:531 do_action(‘init’) wp-
   includes/plugin.php:476
 * Component:
    Plugin: woocommerce-advanced-products-labels
 * Error Message:
    You have an error in your SQL syntax; check the manual that corresponds
   to your MariaDB server version for the right syntax to use near ‘IF’ at line 
   1
 * Error Code:
    1064
 * Image Link >>> [https://ibb.co/rvyKPkD](https://ibb.co/rvyKPkD)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-error-with-the-latest-plugin-update/#post-16141092)
 * Hi,
 * I cannot find why you have this error.
 * To fix this please open file <our plugin>/includes/better_position.php line 520.
   There is a line `$sql = "CREATE TABLE IF NOT EXISTS {$table_name} (`
    Please 
   change it to `$sql = "CREATE TABLE {$table_name} (`. Save the filter and text
   again.
 * Regards,
    Dmytro

Viewing 1 replies (of 1 total)

The topic ‘Database Error with the Latest Plugin Update’ is closed to new replies.

 * ![](https://ps.w.org/advanced-product-labels-for-woocommerce/assets/icon-256x256.
   gif?rev=2770289)
 * [Advanced Product Labels for WooCommerce](https://wordpress.org/plugins/advanced-product-labels-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-product-labels-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-product-labels-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-product-labels-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-product-labels-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-product-labels-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/database-error-with-the-latest-plugin-update/#post-16141092)
 * Status: not resolved