SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "kraepelin_res" does not exist LINE 9: "kraepelin_res" AS "kr" ^