You have an error in your SQL syntax near 'onofrio' and sc.PersonalityNumber=pi.id' at line 1