SELECT category_id FROM video_categories WHERE 1 AND (0 OR name LIKE '%%t%c3%b3th%%') AND (0 OR name LIKE '%%gy%%')