SELECT category_id FROM video_categories WHERE 1 AND (0 OR name LIKE '%%pap%%') AND (0 OR name LIKE '%%g%c3%a1bor%%')