There is no userId of 0 in the database, so it was violating a foreign key constraint in the database I believe.