title: What are the possible reason of WordPress database error: [Query was empty]?
body: <p>I have run into error below but it seems like I can't get proper error logs.</p>
  
  <blockquote>
    <p>WordPress database error Query was empty for query  made by</p>
  </blockquote>
  
  <p>I had this codes that will throw almost similar to the error above.</p>
  
  <pre><code>$query_select = $wpdb-&gt;get_results($wpdb-&gt;prepare(
      " % "
      , 1
  ),ARRAY_A);
  </code></pre>
  
  <p>My question is, what are the possible codes that will throw <code>query was empty</code> like in my above code. </p>