Erro 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 item_tipo = and item_id <> 783 GROUP BY item_id order by item_pos asc' at line 1