Fatal error: Uncaught mysqli_sql_exception: 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' at line 33 in /var/www/destia/destinosemergentes/config/clases/db.php:51 Stack trace: #0 /var/www/destia/destinosemergentes/config/clases/db.php(51): mysqli_query() #1 /var/www/destia/destinosemergentes/app/views/category/t2/category.php(77): db->query() #2 /var/www/destia/destinosemergentes/config/functions.php(253): include_once('...') #3 /var/www/destia/destinosemergentes/config/routes.php(167): cargar_views() #4 /var/www/destia/destinosemergentes/index.php(327): include('...') #5 {main} thrown in /var/www/destia/destinosemergentes/config/clases/db.php on line 51