A PHP Error was encountered

Severity: Notice

Message: Undefined index: user_id

Filename: controllers/FavoritesController.php

Line Number: 33

Backtrace:

File: /home/webadmin/public_html/toyota/app/controllers/FavoritesController.php
Line: 33
Function: _error_handler

File: /home/webadmin/public_html/toyota/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/webadmin/public_html/toyota/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/webadmin/public_html/toyota/app/models/User_pinned_article_type.php
Line: 93
Function: query

File: /home/webadmin/public_html/toyota/app/controllers/FavoritesController.php
Line: 33
Function: getRecordsByUserId

File: /home/webadmin/public_html/toyota/index.php
Line: 293
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 MySQL server version for the right syntax to use near '' at line 1

SELECT * FROM user_pinned_article_type WHERE deleted = 0 AND user_id = ;

Filename: models/User_pinned_article_type.php

Line Number: 93