Errore: Errore sulla query <<SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "20191212") ) ) AND ( ( ( visibile = "S") ) ) AND ( ( ( areecontenuto like "%") OR ( areecontenuto like "%") ) ) ORDER BY dataavvioprevista ASC LIMIT -6, 6>>
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 '-6, 6' at line 1
                        DBEngine.handleFatalError(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ...) # line   77, file: /data/include/class.dbengine.php
                     DBEngine.query(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2...) # line   90, file: /data/include/class.dbengine.php
                  DBEngine.qbe(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6) # line  862, file: /data/include/class.dbengine.php
               db_qbe(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6) # line   90, file: /data/www01/docroot/nuovadidactica/class.dbe.php
            db_getrecords(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6, ~corsi, Array[6], 120) # line  847, file: /data/www01/docroot/nuovadidactica/t_templates.php
         t_models(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6, ~corsi, Array[6], 120, corsi, Array[6]) # line   39, file: /data/www01/docroot/nuovadidactica/class.Paginator.php
      Paginator.getCurrentRecordset(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6, ~corsi, Array[6], 120, corsi, Array[6]) # line   48, file: /data/www01/docroot/nuovadidactica/controllers/aree.php
   include_once(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6, ~corsi, Array[6], 120, corsi, Array[6], /data/www01/docroot/nuovadidactica/controllers/aree.php) # line  393, file: /data/www01/docroot/nuovadidactica/t_templates.php
t_run(Errore sulla query &lt;&lt;SELECT * FROM ng_corsi WHERE 1 AND ( ..., SELECT * FROM ng_corsi WHERE 1 AND ( ( ( dataavvioprevista >= "2..., ~corsi, Array[4], -6, 6, ~corsi, Array[4], -6, 6, ~corsi, Array[6], 120, corsi, Array[6], /data/www01/docroot/nuovadidactica/controllers/aree.php) # line   91, file: /data/www01/docroot/nuovadidactica/index.php