fixed a bug in the query that returns post trends with limit