0 An error occurred executing the following query;

SELECT DISTINCT TOP 100000 D_ID, D_Title, D_Description, D_StartDate, D_EndDate, D_DateEntered, D_Price, D_OfferPrice, D_ExactLocationID, D_CurrencyID, D_RandomKey, CUS_Name, D_CUSWeb, D_LocationGeo.STDistance(geography::STGeomFromText('POINT( )', 4326))/1609.344 As Distance FROM (tblCactusDeals INNER JOIN tblCactusLocations ON D_ExactLocationID = LOC_ID INNER JOIN tblCactusCustomers ON tblCactusDeals.D_CustomerID = tblCactusCustomers.CUS_ID) WHERE (CUS_Jobslive = 'y' AND CUS_Live = 'y' AND D_Live = 'y') AND (D_EndDate >= '2017/12/18 00:00') AND ((CUS_MatrixID = 3 AND CUS_WebsiteLive = 'y') OR (CUS_MatrixID <> 3)) ORDER BY Distance ASC

Error Description :

Could not create an acceptable cursor.

Page of error :

/offers/Default.asp

Query String :

loc_Location=Salisbury%2C+Hampshire&loc_exactlocation=45496