movies (id, name, ...)
actors (id, name, surname, ...)
movies_actors (movie_id, actor_id)
select movies.name, actors.name, actors.surname
from movies
left join movies_actors on movies.id = movies_actors.movie_id
left join actors on actor.id = movies_actors.actor_id
大概是这样的: