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 'groups G LEFT JOIN group_desc GD on G.id_group = GD.id_group WHERE cod' at line 2