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

Warning: Cannot modify header information - headers already sent by (output started at /home/raymu506/public_html/app/controllers/produtos.php:65) 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 categoria, p.textinput_01_pt ASC' at line 1 at SELECT p.*, c.textinput_01_pt AS categoria FROM contents AS p JOIN contents AS c ON c.id = p.foreignkey_02 WHERE p.area = 'produtos' AND p.visible = '1' AND p.foreignkey = ORDER BY categoria, p.textinput_01_pt ASC' 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.*, c.t...') #1 /home/raymu506/public_html/vendor/limberfw/database/ActiveRecord.php(639): DbCommand::all('SELECT p.*, c.t...') #2 /home/raymu506/public_html/app/controllers/produtos.php(67): ActiveRecord->find_by_sql('SELECT p.*, c.t...') #3 /home/raymu506/public_html/vendor/limberfw/libraries/Controller.php(144): ProdutosController->__call('lanux in /home/raymu506/public_html/vendor/limberfw/database/DbCommand.php on line 105