Fix really dumb casing mistake creating query