Notice (8): Undefined index: CategoryLinked [APP/Plugin/Default/Model/News.php, line 175]
Notice (8): Trying to access array offset on value of type null [APP/Plugin/Default/Model/News.php, line 175]
Notice (8): Undefined index: Node [APP/Plugin/Default/Model/News.php, line 225]
Notice (8): Trying to access array offset on value of type null [APP/Plugin/Default/Model/News.php, line 225]
Notice (8): Undefined index: Node [APP/Plugin/Default/Model/News.php, line 256]
Notice (8): Trying to access array offset on value of type null [APP/Plugin/Default/Model/News.php, line 256]
CakePHP: the rapid development php framework: Errors

Database Error

Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rand' in 'order clause'

SQL Query: SELECT `Node`.*, `News`.* FROM `luatminhgia_db`.`news` AS `News` INNER JOIN `luatminhgia_db`.`nodes` AS `Node` ON (`News`.`node_id` = `Node`.`id`) INNER JOIN `luatminhgia_db`.`category_linkeds` AS `CategoryLinked` ON (`Node`.`id` = `CategoryLinked`.`node_id`) WHERE `Node`.`type` = 'news' AND `Node`.`status` = 1 AND `CategoryLinked`.`category_id` IS NULL GROUP BY `CategoryLinked`.`node_id` ORDER BY `rand` ASC LIMIT 10

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace