def load_posts(conn, value):
    """Returns all the posts from the posts table."""

    with conn:
        query = "SELECT * FROM posts WHERE subreddit='{}'".format(value)
        return conn.execute(query)