SELECT COUNT(*) AS `count` FROM `articles` AS `Article` LEFT JOIN `architects` AS `Architect` ON (`Article`.`foreign_id` = `Architect`.`id`) LEFT JOIN `architectures` AS `Architecture` ON (`Article`.`foreign_id` = `Architecture`.`id`) WHERE `Article`.`foreign_id` IN ('5c596970-b104-4ab0-abd3-48fb6d7b5e1b', '5c62a3d6-51e0-43ce-a9b8-2c716d7b5e1b') AND `Article`.`deleted` = 0