Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1

SELECT a.*, b.title AS category FROM tevents a JOIN tcategory_events b ON a.category = b.nomor JOIN tschool c ON FIND_IN_SET(c.nomor, a.school) WHERE (visibility <> 'hide' OR visibility IS NULL) AND DATE_FORMAT(a.start_date, '%m%Y') = 092021 GROUP BY a.nomor LIMIT -10, 10

Filename: views/template/events.php

Line Number: 37