STR_TO_DATE() is available as of MySQL 4.1.1. If you are trying to invoke the function with 3.x, you will get an error.
Both arguments must be strings, so you need to put single quotes around them.
Your first argument looks like nonsense, and may evaluate to NULL.