Multidimensional (>2) queries are not supported error fix