Updated associated_posts alias
Fixed placeholders in associated_posts query