Notice: Undefined variable: sql in /home/Amstor/web/ on line 43

Warning: implode(): Invalid arguments passed in /home/Amstor/web/ on line 43

Fatal error: Uncaught exception 'Exception' with message 'Problem preparing query (SELECT count(id) AS retval FROM video WHERE published = ? AND LIMIT 1) 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 'LIMIT 1' at line 1' in /home/Amstor/web/ Stack trace: #0 /home/Amstor/web/ MysqliDb->_prepareQuery() #1 /home/Amstor/web/ MysqliDb->_buildQuery(1) #2 /home/Amstor/web/ MysqliDb->get('video', 1, 'count(id) AS re...') #3 /home/Amstor/web/ MysqliDb->getValue('video', 'count(id)') #4 /home/Amstor/web/ require_once('/home/Amstor/we...') #5 /home/Amstor/web/ require_ in /home/Amstor/web/ on line 1482