confirmed working, had to remove the final semicolon from the query