I'm trying to write SELECT query for Postgres database but not I'm getting some error - 
pg\_query(): Query failed: ERROR: syntax error at or near "$" LINE 1

```
$findResult = pg_query('SELECT * FROM fingerprintdata WHERE buildingname = $building  ');
$numrows    = pg_num_rows($findResult);

```