String subselect = "id in (select media_id from " + theTable + " where content_id=" + id+")";
try {
- returnList = DatabaseMedia.getInstance().selectByWhereClause(subselect,-1);
+ returnList = DatabaseMedia.getInstance().selectByWhereClause(subselect,"id");
} catch (Exception e) {
theLog.printDebugInfo("-- get uploadedMedia failed " + e.toString());
throw new StorageObjectException("-- get uploadedMedia failed " + e.toString());