I have three values in a string like this: When I feed it into a prepared statement like this: echo $query; shows: It is not writing the string as three separate values — it is just one string with the double quotes escaped. How can I properly implement a prepared statement in WordPress with multiple values? Answer Try this code: