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 in SELECT * FROM events INNER JOIN events_ln ON events.id = events_ln.id_events WHERE id_lang = '1' AND active = 1 AND data_fine >= '2018-12-13' ORDER BY data DESC LIMIT -10,10