A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Recipe.php

Line Number: 20

Backtrace:

File: /home/506528.cloudwaysapps.com/wbqhsfwzbb/public_html/app/content/controllers/Recipe.php
Line: 20
Function: _error_handler

File: /home/506528.cloudwaysapps.com/wbqhsfwzbb/public_html/index.php
Line: 317
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/Recipe.php

Line Number: 30

Backtrace:

File: /home/506528.cloudwaysapps.com/wbqhsfwzbb/public_html/app/content/controllers/Recipe.php
Line: 30
Function: _error_handler

File: /home/506528.cloudwaysapps.com/wbqhsfwzbb/public_html/index.php
Line: 317
Function: require_once

Database Error

A Database Error Occurred

Error Number: 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 '-6, 6' at line 9

SELECT `c`.`id`, `c`.`title`, `c`.`cover`, `c`.`description`, `c`.`url_video` FROM `content` `c` JOIN `content_category_recipes` `ch` ON `c`.`id` = `ch`.`content_id` WHERE `c`.`published_date` <= '2024-03-28 21:20:12' AND `c`.`status` = 1 AND `ch`.`category_recipes_id` IS NULL GROUP BY `c`.`id` ORDER BY `c`.`published_date` DESC LIMIT -6, 6

Filename: models/Recipes.php

Line Number: 82