Fixed missing initial $query = array()