Erro 1064 => 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 'and item_tipo = and item_id <> 659 GROUP BY item_id order by item_pos asc' at line 1
SELECT * FROM item INNER JOIN tipo ON (item_tipo = tipo_id) INNER JOIN sub ON (item_sub = sub_id) INNER JOIN categoria ON (sub_categoria = categoria_id) WHERE item_show = 1 and item_destaque = 1 and item_categoria = and item_tipo = and item_id <> 659 GROUP BY item_id order by item_pos asc