: SELECT DISTINCT tng_media.mediaID, tng_media.description, tng_media.notes, path, thumbpath, alwayson, usecollfolder, form, mediatypeID, status, plot, newwindow, abspath, tng_media.gedcom FROM tng_media WHERE 1 = 1 AND (tng_media.gedcom = "1" || tng_media.gedcom = "") ORDER BY description LIMIT 50