Duh fixing stupid SQL syntax error