DELETE FROM STDTopic WHERE ID IN( select ID from ( select ID from STDTopic where TopicTypeValue='20' ) ids )