Display Options
Select Count(*) from (SELECT *, ((ACOS(SIN(39.0437 * PI() / 180) * SIN(latitude * PI() / 180) + COS(39.0437 * PI() / 180) * COS(latitude * PI() / 180) * COS((-77.4875 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance FROM siteslocal where (Item like '%zzzxxzzzzzz%')and replace(name,' ','') = 'DealsontheFly' HAVING (distance<='50' or Special like '%Ashburn%') and started > DATE_SUB( NOW( ) , INTERVAL 7 DAY)) as q
SELECT *, ((ACOS(SIN(39.0437 * PI() / 180) * SIN(latitude * PI() / 180) + COS(39.0437 * PI() / 180) * COS(latitude * PI() / 180) * COS((-77.4875 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance FROM siteslocal where (Item like '%zzzxxzzzzzz%')and replace(name,' ','') = 'DealsontheFly' HAVING (distance<='50' or Special like '%Ashburn%') and started > DATE_SUB( NOW( ) , INTERVAL 7 DAY)
SELECT *, ((ACOS(SIN(39.0437 * PI() / 180) * SIN(latitude * PI() / 180) + COS(39.0437 * PI() / 180) * COS(latitude * PI() / 180) * COS((-77.4875 - longitude) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance FROM siteslocal where (Item like '%zzzxxzzzzzz%')and replace(name,' ','') = 'DealsontheFly' HAVING (distance<='50' or Special like '%Ashburn%') and started > DATE_SUB( NOW( ) , INTERVAL 7 DAY)
Expired: January 27th 2012 at 1:53 PM
Expired: February 2nd 2012 at 12:22 PM
Expired: February 9th 2012 at 12:48 PM
Expired: February 17th 2012 at 11:38 AM
Expired: February 20th 2012 at 10:29 PM
Expired: February 26th 2012 at 1:07 PM
Expired: March 4th 2012 at 10:02 PM
Expired: June 22nd 2012 at 12:35 PM
Expired: June 14th 2011 at 11:23 AM
Expired: June 22nd 2011 at 4:41 PM
Expired: July 16th 2011 at 9:28 AM
Expired: January 17th 2012 at 1:00 PM
Expired: January 26th 2012 at 12:10 PM
Expired: June 14th 2012 at 6:55 PM
Expired: June 21st 2012 at 5:38 PM
Expired: July 23rd 2011 at 4:36 PM
Expired: July 26th 2011 at 7:03 PM































