SELECT p.*, pa.* FROM posts p left join post_attachments pa on pa.post_id = p.id
Sadece bunu denediğinde ne geliyor?