MYSQL-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 a.precio > 0.85* and a.id_categoria = '' and a.id<>'2' order by id desc' at line 7
FILE : /home/admin/domains/region20.com.ar/public_html/include/include.funciones.php : 1882
select a.id, a.nombre , a.precio,IF(a.precio>0 AND a.precio<>'',  u.simbolo, '') as unidad,
				af.path as img, destacado, a.id_categoria, a.tipo_articulo
				from articulos a
				LEFT JOIN unidad u ON (u.id = a.unidad)
				LEFT JOIN usuarios us ON (us.id=a.id_usuario)
				LEFT JOIN articulosxfoto af on af.id_articulo = a.id and id_foto=0
				where a.estado=1 and a.precio < 1.15* and a.precio > 0.85* and a.id_categoria = '' and a.id<>'2'
				order by id desc limit 10