title: MySQL SELECT Error
body: <p>I am beginner with PHP. I faced that problem when I start my first SQL queries:</p>
  
  <blockquote>
    <p>Database query On Pages failed : 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 '['id']}' at line 1</p>
  </blockquote>
  
  <p>There is  my SELECT  command  :</p>
  
  <pre><code>$page_set = mysql_query(
      "SELECT * FROM pages WHERE subject_id  = {[$subject'id']}", $connection
  );
  </code></pre>
  
  <p>I checked all my database tables and everything is correct. This query works :</p>
  
  <pre><code>$page_set = mysql_query("SELECT * FROM pages" ,$connection)
  </code></pre>