Had ? in quotes in SQL command when it should not be.