@jussimannisto I appreciate you taking the time to answer my question and perhaps the example code is rather confusing.
I'm not looking for a better way to write the query, I need to figure out why I'm getting an "Error: Invalid parameter number" when trying to bind the same value more then once on a raw query.
@laraguy25 You should always try googling first. I found this issue from the tracker and this paragraph from the PHP docs:
You must include a unique parameter marker for each value you wish to pass in to the statement when you call PDOStatement::execute(). You cannot use a named parameter marker of the same name more than once in a prepared statement, unless emulation mode is on.