Notice: Undefined variable: i in /home/corretorajv/www/app/venda.php on line 190

Notice: Trying to get property 'item_categoria' of non-object in /home/corretorajv/www/app/venda.php on line 208

Notice: Trying to get property 'item_tipo' of non-object in /home/corretorajv/www/app/venda.php on line 208
Array ( [0] => 42000 [1] => 1064 [2] => 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 item_tipo = and item_id <> 597 GROUP BY item_id order by item_pos asc LI...' at line 1 )