Error is query: SELECT proceeding from kwds WHERE id = .