Prepared Statement

I am using the below prepared statement:

This is giving me an error message:

Any ideas what I’m doing wrong?

I solved it by simply doing this:

Hope this helps someone.