Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND offer_active ORDER BY offer_top DESC, offer_unique_id ASC' at line 1' in /home/malchoga/public_html/ip/DB/SimpleDB.php:56
Stack trace:
#0 /home/malchoga/public_html/ip/DB/SimpleDB.php(56): PDOStatement->execute(Array)
#1 /home/malchoga/public_html/rezervirai.net/models/Paging.php(51): IP\DB\SimpleDB->execute()
#2 /home/malchoga/public_html/rezervirai.net/models/Paging.php(39): Models\Paging->getCountResult()
#3 /home/malchoga/public_html/rezervirai.net/models/Paging.php(35): Models\Paging->setPagination()
#4 /home/malchoga/public_html/rezervirai.net/models/OffersModel.php(171): Models\Paging->__construct('SELECT * FROM o...', 1, 51, NULL, 'array', 5, 'offers/website/...', 8)
#5 /home/malchoga/public_html/rezervirai.net/controllers/Offers.php(188): Models\OffersModel->g in /home/malchoga/public_html/ip/DB/SimpleDB.php on line 56