A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Products.php

Line Number: 34

Backtrace:

File: /home/u19206/data/www/aquamarket.ml/application/controllers/Products.php
Line: 34
Function: _error_handler

File: /home/u19206/data/www/aquamarket.ml/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object

Filename: relations/relation.php

Line Number: 94

Backtrace:

File: /home/u19206/data/www/aquamarket.ml/application/libraries/src/relations/relation.php
Line: 94
Function: call_user_func_array

File: /home/u19206/data/www/aquamarket.ml/application/controllers/Products.php
Line: 56
Function: __call

File: /home/u19206/data/www/aquamarket.ml/application/controllers/Products.php
Line: 56
Function: first

File: /home/u19206/data/www/aquamarket.ml/index.php
Line: 292
Function: require_once

Database Error

Ошибка базы данных.

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 'WHERE `product_id` = '228'' at line 2

SELECT * WHERE `product_id` = '228'

Filename: libraries/src/relations/belongstomany.php

Line Number: 29