Warning: Undefined array key "sub_id" in /var/www/html/mrgroove.com.br/web/app/views/categoria.php on line 17

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 '-24, 24' at line 1 in /var/www/html/mrgroove.com.br/web/app/models/produto.php:46 Stack trace: #0 /var/www/html/mrgroove.com.br/web/app/models/produto.php(46): mysqli_query(Object(mysqli), 'select prodID, ...') #1 /var/www/html/mrgroove.com.br/web/app/views/categoria.php(17): Produto->getCategoryList('30', NULL, '0', 24) #2 {main} thrown in /var/www/html/mrgroove.com.br/web/app/models/produto.php on line 46