Fixed require name of query