A Database Error Occurred

Error Number: 1054

Unknown column '2' in 'where clause'

SELECT fuel_blog_posts.*, fuel_blog_users.display_name, CONCAT(fuel_users.first_name, " ", fuel_users.last_name) as author_name, YEAR(fuel_blog_posts.post_date) as year, DATE_FORMAT(fuel_blog_posts.post_date, "%m") as month, DATE_FORMAT(fuel_blog_posts.post_date, "%d") as day FROM (`fuel_blog_posts`) LEFT JOIN `fuel_relationships` ON `fuel_relationships`.`candidate_key` = `fuel_blog_posts`.`id` AND fuel_relationships.candidate_table = "fuel_blog_posts" AND fuel_relationships.foreign_table = "fuel_blog_categories" LEFT JOIN `fuel_blog_users` ON `fuel_blog_users`.`fuel_user_id` = `fuel_blog_posts`.`author_id` LEFT JOIN `fuel_users` ON `fuel_users`.`id` = `fuel_blog_posts`.`author_id` LEFT JOIN `fuel_blog_categories` ON `fuel_blog_categories`.`id` = `fuel_relationships`.`foreign_key` WHERE `2` IS NULL AND `fuel_blog_posts`.`published` = 'yes' GROUP BY `fuel_blog_posts`.`id` ORDER BY `sticky`, `post_date` desc LIMIT 10

Filename: /home/buryscou/public_html/maynardhouse.co.uk/fuel/modules/fuel/core/MY_Model.php

Line Number: 477