Whose Error Is It?
Postgres printed this
ERROR: syntax error at or near "FROM"
What it meansPostgres found the FROM keyword where its grammar did not allow it, so something just before FROM in the query is malformed.
The first thing to checkLook right before FROM for a trailing comma after the last column, a missing column list, or a reserved word used as a column name without quotes.