Unhandled Exception. SQLSTATE[42000]: Syntax error or access violation: 1064 syntax error, unexpected '-' You can find the error back in the log.