A PHP Error was encountered

Severity: Notice

Message: Undefined variable: restaurant

Filename: controllers/leisure.php

Line Number: 308

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: restaurant

Filename: controllers/leisure.php

Line Number: 335

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: restaurant

Filename: controllers/leisure.php

Line Number: 359

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /data/sites/web/belviccicom/www/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 444

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '610677 - abs(SIGHTS.GPS_LAT)) * pi()/180 / 2),2) + COS(42 610677 * pi()/180 ) * ' at line 1

SELECT *, 3956 * 2 * ASIN(SQRT( POWER(SIN((42 610677 - abs(SIGHTS.GPS_LAT)) * pi()/180 / 2),2) + COS(42 610677 * pi()/180 ) * COS(abs(SIGHTS.GPS_LAT) * pi()/180) * POWER(SIN((8 873552 - SIGHTS.GPS_LNG) * pi()/180 / 2), 2) )) as 'distance' FROM SIGHTS LEFT JOIN SECSELT ON SIGHTS.SECTORC = SECSELT.SECSELCODE having distance < 50 ORDER BY distance limit 15;

Filename: /data/sites/web/belviccicom/www/models/sight_model.php

Line Number: 599