Severity: Notice
Message: Trying to get property 'pcat_id' of non-object
Filename: controllers/Page.php
Line Number: 638
Backtrace:
File: /home/u275446265/domains/peternguyenstudio.com/public_html/application/controllers/Page.php
Line: 638
Function: _error_handler
File: /home/u275446265/domains/peternguyenstudio.com/public_html/application/controllers/Page.php
Line: 71
Function: blogdetail
File: /home/u275446265/domains/peternguyenstudio.com/public_html/index.php
Line: 316
Function: require_once
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 ') as `category` FROM pages P WHERE page_type="blog" and page_url!="...' at line 2
SELECT *, (SELECT pcat_name FROM page_cat WHERE pcat_id = ) as `category` FROM pages P WHERE page_type="blog" and page_url!="index.html" order by page_id desc limit 2
Filename: controllers/Page.php
Line Number: 639