id | name | status ----+--------------------+----------- 1 | QA Campaign 001 v2 | cancelled (1 row) ERROR: column "email" does not exist LINE 1: SELECT id, email, COUNT(*) AS rcpts FROM recipient_lists ORD... ^