• These error messages are pretty clear.

    Read the error messages then look at your query.