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 s_id_man.manid=s_synth.manid group by s_comments.id order by model asc' at line 10