title: I cant understand how I wrote this code please, guide
body: <p>This is my full page code, but notice the error in writing which line is causing the error.</p>
  
  <blockquote>
    <p><strong>You have an error in your SQL syntax;</strong> check the manual that corresponds to your MySQL server version for the right syntax to use near 'id']; ?>'' at line 131)</p>
  </blockquote>
  
  <p>When I write this <code>$getpost = $db-&gt;select($query_edit);</code> code, this type of error appears on my admin page, I do not understand what to do, I have tried many things, but error is not resolved!</p>
  
  <pre><code>&lt;?php
  $query_edit = "SELECT * FROM tbl_post WHERE id='$editpost' ";
  $getpost = $db-&gt;select($query_edit);// This is the line that caused this error to be written
  </code></pre>
  
  <p>My admin panel image:</p>
  
  <p><a href="https://i.stack.imgur.com/yCWAj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yCWAj.png" alt="enter image description here"></a></p>