Attempting to create php associative array
Fixed get locations query