Silly bug.. didn't specify SQL correctly