Notice: Trying to get property of non-object in /home/raymu506/public_html/app/controllers/produtos.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at /home/raymu506/public_html/app/controllers/produtos.php:67) in /home/raymu506/public_html/vendor/limberfw/database/DbCommand.php on line 96

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 MySQL server version for the right syntax to use near 'ORDER BY p.ordem, c.textinput_01_pt, p.flag' at line 1 at SELECT p.* FROM contents AS p JOIN contents AS c ON = p.foreignkey_02 WHERE p.area = 'produtos' AND p.visible = '1' AND p.foreignkey = ORDER BY p.ordem, c.textinput_01_pt, p.flag' in /home/raymu506/public_html/vendor/limberfw/database/DbCommand.php:105 Stack trace: #0 /home/raymu506/public_html/vendor/limberfw/database/DbCommand.php(162): DbCommand::query('SELECT p.* FROM...') #1 /home/raymu506/public_html/vendor/limberfw/database/ActiveRecord.php(639): DbCommand::all('SELECT p.* FROM...') #2 /home/raymu506/public_html/app/controllers/produtos.php(69): ActiveRecord->find_by_sql('SELECT p.* FROM...') #3 /home/raymu506/public_html/vendor/limberfw/libraries/Controller.php(144): ProdutosController->__call('figueira', Array) #4 /home/raymu5 in /home/raymu506/public_html/vendor/limberfw/database/DbCommand.php on line 105