SELECT * FROM cms_junctions WHERE
junction_node_id IN (:ids) AND
junction_setting_node_id = 1