ERROR: column "krs_id" does not exist LINE 1: SELECT id_krs,krs_id FROM akd_krs where krs_id is not null a... ^