Bad SQL query:
SELECT *, DATE_FORMAT(Data,'%d.%m.%Y') AS MyData, DATE_FORMAT(Data,'%Y-%m-%d') AS MyFData, UCASE(Header) AS UHeader FROM ut_webtext WHERE ParentID IN (SELECT StructureID From ut_structure WHERE WebPath='taxes' AND NNewsType IN (2,3) AND TreeCode LIKE '001.002.020%') GROUP BY Header ORDER BY Data DESC LIMIT -5, 6
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-5, 6' at line 1