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 'JAOIN users u ON u.id=c.autore_id WHERE c.articolo_id = 122307 ORDER BY c.' at line 3