should be `mimetype` - maybe this is why the query is not returning a proper result set?