Notice (8): Undefined index: Category [APP/Controller/TopStoriesController.php, line 208]
CakePHP: the rapid development php framework: Errors

Database Error

Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'index.html' in 'where clause'

SQL Query: SELECT max(`News`.`id`) as id FROM `panipat_pnp`.`news` AS `News` LEFT JOIN `panipat_pnp`.`users` AS `User` ON (`News`.`user_id` = `User`.`id`) LEFT JOIN `panipat_pnp`.`categories` AS `Category` ON (`News`.`category_id` = `Category`.`id`) LEFT JOIN `panipat_pnp`.`sources` AS `Source` ON (`News`.`source_id` = `Source`.`id`) WHERE `News`.`id` < `index`.`html` AND `Category`.`id` IS NULL LIMIT 1

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

Stack Trace

(default) 1 query took 1 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `News`.`id`, `News`.`user_id`, `News`.`category_id`, `News`.`source_id`, `News`.`tags`, `News`.`title`, `News`.`content`, `News`.`url`, `News`.`media_id_thumbnail`, `News`.`media_ids`, `News`.`is_published`, `News`.`status`, `News`.`publication_date`, `News`.`created_by`, `News`.`created_at`, `News`.`updated_by`, `News`.`updated_at`, `News`.`english_title`, `User`.`id`, `User`.`email`, `User`.`password`, `User`.`f_name`, `User`.`l_name`, `User`.`gender`, `User`.`dob`, `User`.`city_id`, `User`.`address`, `User`.`pincode`, `User`.`mobile`, `User`.`role_id`, `User`.`status`, `User`.`created_at`, `User`.`created_by`, `User`.`updated_by`, `User`.`updated_at`, `Category`.`id`, `Category`.`category_type_id`, `Category`.`category_name`, `Category`.`category_description`, `Category`.`status`, `Category`.`created_at`, `Category`.`created_by`, `Category`.`updated_at`, `Category`.`updated_by`, `Source`.`id`, `Source`.`source_type`, `Source`.`name`, `Source`.`description`, `Source`.`url`, `Source`.`status`, `Source`.`created_by`, `Source`.`created_at`, `Source`.`updated_by`, `Source`.`updated_at` FROM `panipat_pnp`.`news` AS `News` LEFT JOIN `panipat_pnp`.`users` AS `User` ON (`News`.`user_id` = `User`.`id`) LEFT JOIN `panipat_pnp`.`categories` AS `Category` ON (`News`.`category_id` = `Category`.`id`) LEFT JOIN `panipat_pnp`.`sources` AS `Source` ON (`News`.`source_id` = `Source`.`id`) WHERE `News`.`id` = 'index.html' LIMIT 1001