title: MySQL Unhelpful SQL Syntax Error
body: <p>I have another error with my MySQL, Which is as follows:</p>
  
  <pre><code>    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 '' at line 1
  </code></pre>
  
  <p>I have experienced this error before by removing unnecessary quotes, however this doesn't appear to be the problem this time. All the times I saw the question asked on stack overflow too, the questions were either because of unnecessary quotes or were very unique to that code. If anyone can help me or point me towards a useful answer, I would appreciate that! :^]</p>
  
  <p>Code:</p>
  
  <pre><code>    $sql = "SELECT(sect_id, sect_name, sect_desc)FROM sections WHERE sect_id = " . mysqli_real_escape_string($con,$_GET["id"]);
  
  $result = mysqli_query($con,$sql);
  
  if(!$result)
  {
  echo 'The sections could not be displayed, please try again later.' . mysqli_error($con); 
  </code></pre>