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 on G.id_group = L.id_group LEFT JOIN group_desc GD on GD.id_group =' at line 4