A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/poll_model.php

Line Number: 218

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 'ORDER BY id desc' at line 1

SELECT count(*) as total FROM poll_question j WHERE j.cid = ORDER BY id desc

Filename: /home/isysport/public_html/isysportal.com/libraries/model_pagination.php

Line Number: 160