Exception information:

Date: Mar 20, 2019 8:04AM

Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND claveAreaFuncional = "" ORDER BY idProducto DESC LIMIT 0,1' at line 1

Code: 42000

File: /home/betterware/public_html/app/Models/Producto.php

Line: 48

Stack trace:

#0 /home/betterware/public_html/app/Models/Producto.php(48): PDOStatement->execute()
#1 /home/betterware/public_html/app/Controllers/Producto.php(44): Models\Producto->anterior(NULL, NULL, NULL)
#2 [internal function]: Controllers\Producto->producto_detalle('practi-bolsas', '18700')
#3 /home/betterware/public_html/app/Core/Router.php(95): call_user_func_array(Array, Array)
#4 /home/betterware/public_html/app/Core/Router.php(219): Core\Router::invokeObject('Controllers\\Pro...', Array)
#5 /home/betterware/public_html/index.php(303): Core\Router::dispatch()
#6 {main}