Title: SQL Syntax Error
Last modified: August 30, 2016

---

# SQL Syntax Error

 *  [bingtx](https://wordpress.org/support/users/bingtx/)
 * (@bingtx)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/)
 * I am getting the following error in my error log:
 * 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‘
   ORDER BY id’ at line 1 for query SELECT * FROM ORDER BY id made by require(‘wp-
   blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’),
   require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, pmprois_init,
   pmprois_getPMProLevels
 * I have no idea where to go to fix the syntax. Any ideas?

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432250)
 * Have you asked your hosting provider for assistance?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432251)
 * From a quick search, it looks like that’s from the Paid Membership Pro plugin.
   If that’s the case you’ll need to ask the author/vendor of that plugin for help
   as [commercial products](http://codex.wordpress.org/Forum_Welcome#Commercial_Products)
   aren’t supported by this forum.
 *  Thread Starter [bingtx](https://wordpress.org/support/users/bingtx/)
 * (@bingtx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432576)
 * I don’t have the paid Membership Pro pligin.
    And yes I asked my hosting company
   for help. They don’t know what the error is from either
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432577)
 * I might have spoken to soon… A search for that code does reval something for 
   PMPro Infusionsoft Integration. If you are running that, then that’s the cause.
 * If I’m wrong again (and that’s pretyt likely), you need to do the standard debugging
   and follow these steps:
    - Disable all (yes _all_) plugins
    - Switch to a default theme (Twenty *)
    - Re-enable the plugins one-by-one
    - After re-enabling each plugin check to see if the same error is there
 * That will show you which plugin is causing the error, and then you’ll be able
   ot go back to the author and ask for more support. 🙂
 *  Thread Starter [bingtx](https://wordpress.org/support/users/bingtx/)
 * (@bingtx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432580)
 * I think it was PMPro.
    I deleted that among several other plugins last night 
   that I was not using, and the error stopped showing up.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432581)
 * > I don’t have the paid Membership Pro pligin.
 * Hmm… But that was the one that was causing the problem? 😉
 * As long as it’s fixed, thats good.

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

The topic ‘SQL Syntax Error’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [SQL syntax](https://wordpress.org/support/topic-tag/sql-syntax/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/sql-syntax-error-10/#post-6432581)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
