A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 192

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 193

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 194

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 195

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 196

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 197

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/attractions.php

Line Number: 198

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 '' at line 1

SELECT AVG(rating1) AS av1, AVG(rating2) AS av2, AVG(rating3) AS av3 FROM reviews WHERE item_id =