Output

SELECT id, title, description from resources where display = 1 and (identity & 8) order by title asc