select id from category where LCASE(link)='migraines' or LCASE(name)='migraines'