select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1)
http://www.codesky.net/article/201011/146964.html