Fixed query

UGGGHHHHHH. So stupid.