Notice: Trying to get property of non-object in /home/julianal/public_html/app/controllers/eventos.php on line 65

Fatal error: Uncaught exception 'InvalidQueryException' with message 'Error executing query: 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 ') ORDER BY ordem ASC LIMIT 1' at line 1 at SELECT count(*) as total FROM `albums` WHERE (album_category_id = ) ORDER BY ordem ASC LIMIT 1 ' in /home/julianal/public_html/vendor/limberfw/database/DbCommand.php:98 Stack trace: #0 /home/julianal/public_html/vendor/limberfw/database/DbCommand.php(155): DbCommand::query('SELECT count(*)...') #1 /home/julianal/public_html/vendor/limberfw/database/ActiveRecord.php(593): DbCommand::all('SELECT count(*)...') #2 /home/julianal/public_html/vendor/limberfw/database/ActiveRecord.php(530): ActiveRecord->find_by_sql('SELECT count(*)...') #3 /home/julianal/public_html/vendor/limberfw/database/ActiveRecord.php(537): ActiveRecord->find_every(Array) #4 /home/julianal/public_html/vendor/limberfw/database/ActiveRecord.php(214): ActiveRecord->find_initial(Array) #5 [i in /home/julianal/public_html/vendor/limberfw/database/DbCommand.php on line 98