A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 54

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 54
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 59

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 59
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 60

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 60
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 66

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 66
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: controllers/Main.php

Line Number: 67

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 67
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 76

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 76
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 78

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 78
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 79

Backtrace:

File: /var/www/html/application/controllers/Main.php
Line: 79
Function: _error_handler

File: /var/www/html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 578

Backtrace:

File: /var/www/html/application/models/M_data.php
Line: 45
Function: query

File: /var/www/html/application/controllers/Main.php
Line: 80
Function: ambil_related

File: /var/www/html/index.php
Line: 315
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 'AND tb_article.id_category = ORDER BY tb_article.id_article DESC LIMIT 2' at line 1

SELECT * FROM tb_article, tb_admin, tb_category WHERE tb_article.id_user = tb_admin.id_admin AND tb_article.id_category = tb_category.id_category AND tb_article.id_article != AND tb_article.id_category = ORDER BY tb_article.id_article DESC LIMIT 2

Filename: models/M_data.php

Line Number: 45