SELECT tv.vid from tag_video as tv,tags as t where tv.tag_id=t.id and t.tag='ejaculation' group by tv.vid