I am using tailor, I put this in the page
{% set posts = blog.whereRelation('categories', 'slug', category.slug).paginate(2) %}
and I get
An exception has been thrown during the rendering of a template ("SQLSTATE[42000]: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP, OFFSET or FOR XML is also specified. (SQL: select count(*) as aggregate from [xc_3d7b918a4e2f43a1bee3a9df84dbbf9fc] where [is_enabled] = 1 and exists (select * from [xc_11b6f8fd289d49509ed560ff2da3779ec] where [xc_3d7b918a4e2f43a1bee3a9df84dbbf9fc].[categories_id] = [xc_11b6f8fd289d49509ed560ff2da3779ec].[id] and [slug] = marketing-list and [xc_11b6f8fd289d49509ed560ff2da3779ec].[draft_mode] = 1 and [xc_11b6f8fd289d49509ed560ff2da3779ec].[is_version] = 0 order by [nest_left] asc) and [xc_3d7b918a4e2f43a1bee3a9df84dbbf9fc].[draft_mode] = 1 and [xc_3d7b918a4e2f43a1bee3a9df84dbbf9fc].[is_version] = 0)").
is this an ms sql server issue? or am i doing something wrong?