Title: SQL query upon plugin activation
Last modified: June 20, 2023

---

# SQL query upon plugin activation

 *  Resolved [kmcwepc](https://wordpress.org/support/users/kmcwepc/)
 * (@kmcwepc)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/sql-query-upon-plugin-activation/)
 * When I install and activate the plugin I see the following error in the logs
 *     ```wp-block-code
       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 'IF' at line 1
       ```
   

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

 *  [Noptin Newsletter Team](https://wordpress.org/support/users/picocodes/)
 * (@picocodes)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/sql-query-upon-plugin-activation/#post-16833130)
 * Hi,
 * Please share your MySQL version number. You can find this at Tools > Site Health.
 *  Thread Starter [kmcwepc](https://wordpress.org/support/users/kmcwepc/)
 * (@kmcwepc)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/sql-query-upon-plugin-activation/#post-16834626)
 * Hi and thank you for replying. This is the version:
 * Server version: 5.7.39-42-log
   Client version: mysqlnd 7.4.33
 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/sql-query-upon-plugin-activation/#post-16840412)
 * Hi [@kmcwepc](https://wordpress.org/support/users/kmcwepc/),
 * Thanks for the report, we have found the issue and fixed it, the fix will be 
   in the next release 🙂
 * Thanks,
 * Stiofan

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

The topic ‘SQL query upon plugin activation’ is closed to new replies.

 * ![](https://ps.w.org/getpaid-wallet/assets/icon-256x256.png?rev=2892411)
 * [GetPaid > Wallet](https://wordpress.org/plugins/getpaid-wallet/)
 * [Support Threads](https://wordpress.org/support/plugin/getpaid-wallet/)
 * [Active Topics](https://wordpress.org/support/plugin/getpaid-wallet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/getpaid-wallet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/getpaid-wallet/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/sql-query-upon-plugin-activation/#post-16840412)
 * Status: resolved