Title: Query String Causes Error 406
Last modified: August 30, 2016

---

# Query String Causes Error 406

 *  [MJMWeb](https://wordpress.org/support/users/mjmweb/)
 * (@mjmweb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/query-string-causes-error-406/)
 * I’m attempting something relatively simple: query a database and display the 
   information.
 * This is my query string:
 * $query1 = ‘SELECT * From Grand Order By placement’;
 * I get an Error 406 when trying to save this. I can save regular strings like 
   this:
 * “Hi, how are you”
 * I can save this:
 * “SELECT * From”
 * The moment I add a space and anything else after that I get the Error 406. Removing
   the * and putting the specific columns I want returned doesn’t fix it either.
   I have no idea what could be causing this, it’s not like I’m DOING anything with
   the string, I’m just creating it.
 * [https://wordpress.org/plugins/shortcode-exec-php/](https://wordpress.org/plugins/shortcode-exec-php/)

The topic ‘Query String Causes Error 406’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-exec-php.svg)
 * [Shortcode Exec PHP](https://wordpress.org/plugins/shortcode-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-exec-php/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [MJMWeb](https://wordpress.org/support/users/mjmweb/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/query-string-causes-error-406/)
 * Status: not resolved