DEBUGING
Address: Washington 20007
Username: vjarnold
Lat: 38.9144
Lon: -77.0763
Geo Source:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: geo_source
Filename: search/template_0004.php
Line Number: 167
Query: SELECT DISTINCT locations.id, locations.location_number, locations.name, locations.street_address, locations.street_address_line2, locations.street_address_line3, locations.city, locations.state_province, locations.zip_postal_code, locations.country, locations.phone, locations.toll_free, locations.fax, locations.email, locations.website_url, locations.contact_name, locations.contact_title, locations.additional_info, locations.custom1, locations.custom2, locations.custom3, locations.custom4, locations.custom5, locations.custom6, locations.image, locations.lat, locations.lon, (3956 * 2 * ASIN(SQRT( POWER(SIN((38.9144 - locations.lat) * pi()/180 / 2), 2) + COS(38.9144 * pi()/180) * COS(locations.lat * pi()/180) * POWER(SIN((-77.0763 - locations.lon) * pi()/180 / 2), 2) )) ) AS distance
FROM (locations)
LEFT JOIN accounts ON locations.account_id = accounts.id
WHERE `accounts`.`username` = 'vjarnold'
AND (3956 * 2 * ASIN(SQRT( POWER(SIN((38.9144 - locations.lat) * pi()/180 / 2),2) + COS(38.9144 * pi()/180) * COS(locations.lat * pi()/180) * POWER(SIN((-77.0763 - locations.lon) * pi()/180 / 2),2) )) ) <= '40'
ORDER BY distance asc, locations.location_number asc, locations.id asc
LIMIT 1
Total Rows: 1
Rows: Array
(
[0] => stdClass Object
(
[id] => 52768
[location_number] => 7
[name] => Proforma Castellana Enterprises
[street_address] => PO Box 9829
[street_address_line2] =>
[street_address_line3] =>
[city] => Alexandria
[state_province] => VA
[zip_postal_code] => 22304
[country] => USA
[phone] => (703) 499-8131
[toll_free] =>
[fax] => (703) 490-0571
[email] => joe.defrancesco@proforma.com
[website_url] =>
[contact_name] => Joe DeFrancesco
[contact_title] => Owner
[additional_info] => Certified Digital Publishing Specialist
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[lat] => 38.816711
[lon] => -77.108246
[distance] => 6.9601414998974
)
)