blog::query.generate_blogs returned invalid query. Adjust the order by.