select * from kwamealexander_multi where module like 'gallery' and (category regexp '^[0-9]{0,2}[\-~]{0,2}Photos$' or category like 'Photos') and featured != 8 and featured < 9 order by display_order asc, featured desc, updated desc, id asc limit -36,36