Fatal error: Uncaught exception 'Exception' with message 'Problem preparing query (SELECT DISTINCT(id), DATE_FORMAT(dataInizioCorso, '%w') as giornoSettimana, DATE_FORMAT(dataInizioCorso, '%d') as giorno, dataInizioCorso, DATE_FORMAT(dataInizioCorso, '%c') as mese, titoloCorso, descrizioneCorso, pathFileCopertinaThumbCorso, nomeComune FROM corsi_view WHERE pubblicatoCorso=1 AND idCategoria <>31 AND dataInizioCorso<'2024-12-03' AND dataInizioCorso <> '0000-00-00' ORDER BY dataInizioCorso DESC LIMIT -50,10) 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 '-50,10' at line 1' in /home/meccano/public_html/sales/assets/inc/MysqliDb.php:1482
Stack trace:
#0 /home/meccano/public_html/sales/assets/inc/MysqliDb.php(382): MysqliDb->_prepareQuery()
#1 /home/meccano/public_html/formazione-archivio.php(20): MysqliDb->rawQuery('SELECT DISTINCT...')
#2 {main}
thrown in /home/meccano/public_html/sales/assets/inc/MysqliDb.php on line 1482