diff --git a/print/templates/reports/previa-label/sql/sector.sql b/print/templates/reports/previa-label/sql/sector.sql index 9ddac557e..77e84c033 100644 --- a/print/templates/reports/previa-label/sql/sector.sql +++ b/print/templates/reports/previa-label/sql/sector.sql @@ -1,4 +1,4 @@ -SELECT `s`.`description` -FROM `vn`.`saleGroup` sg - JOIN `vn`.`sector` s ON `sg`.`sectorFk` = `s`.`id` -WHERE `sg`.`id` = ? \ No newline at end of file +SELECT s.description +FROM vn.saleGroup sg + JOIN vn.sector s ON sg.sectorFk = s.id +WHERE sg.id = ? \ No newline at end of file