title: pg_query(): Query failed: ERROR: column doesnot exist
body: <p>i did follow the solution here : <a href="https://stackoverflow.com/questions/27594423/warning-pg-query-query-failed-error-syntax-error-at-or-near">Warning: pg_query(): Query failed: ERROR: syntax error at or near</a> but i still got the following error :</p>
  
  <blockquote>
    <p>Warning: pg_query(): Query failed: ERROR: column &quot;rosmoffi&quot; does not exist LINE 1: ... FROM public.&quot;espece&quot; where &quot;espece&quot;.&quot;Code_Espece&quot; =Rosmoffi ^</p>
  </blockquote>
  
  <p>this is my code : </p>
  
  <pre><code>$conn = pg_connect($conn_string);
  
  $query = 'SELECT * FROM public."espece" where "espece"."Code_Espece" ='.$idd ;
  if (!$result = pg_query($conn, $query)){
      echo  pg_result_error ($conn);
      return false;
  }
  $result = db($result); 
  return $result;
  </code></pre>