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 'distinct(c.id) FROM cd c INNER JOIN cd_musicisti cd_m ON c.id = cd_m.i' at line 1

A quanto pare non mi funziona

Anzi mi devo ravvedere...
FUNZIONA!!!
mancava solo una virgola di separazione, errore di sintassi.

Un problema in meno, grazie.