SQL ERROR
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 agrupamientos.id_producto=productos.id_producto AND productos.activo='on')' at line 1
SQL ERROR NUMBER
1064
SQL
SELECT productos.* FROM productos,agrupamientos WHERE (() AND agrupamientos.id_producto=productos.id_producto AND productos.activo='on') ORDER BY cod_barra ASC