SELECT `e`.* FROM `catalog_category_entity` AS `e` WHERE (((`e`.`entity_id` = '2') OR (`e`.`entity_id` = '287') OR (`e`.`entity_id` = '299') OR (`e`.`entity_id` = '309') OR (`e`.`entity_id` = '367') OR (`e`.`entity_id` = '380')))