ERROR [512] DB connection error

Warning: pg_close() [function.pg-close]: No PostgreSQL link opened yet in /webpages/turkmedya.tv/htdocs/classes/db.class.php on line 250