It looks like you're new here. If you want to get involved, click one of these buttons!
function _common_query($display_unpublished_if_logged_in = TRUE){
parent::_common_query(TRUE);
if(!empty(uri_segment(4))){
$this->db->select('n.id, n.category_id, fc.slug as category_slug');
$this->db->from('news as n, fuel_categories as fc');
$this->db->where('n.id ='.uri_segment(4));
}
}
A Database Error Occurred
Error Number: 1054
Unknown column 'reindex' in 'where clause'
SELECT news.*, fuel_categories.slug as category_slug, fuel_categories.id as category_id, YEAR(news.publish_date) as year, DATE_FORMAT(news.publish_date, "%m") as month, DATE_FORMAT(news.publish_date, "%d") as day, `n`.`id`, `n`.`category_id`, `fc`.`slug` as category_slug FROM (`news` as n, `fuel_categories` as fc, `news`) LEFT JOIN `fuel_categories` ON `fuel_categories`.`id` = `news`.`category_id` LEFT JOIN `fuel_relationships` ON `fuel_relationships`.`candidate_key` = `news`.`id` AND fuel_relationships.candidate_table = "news" AND fuel_relationships.foreign_table = "fuel_tags" LEFT JOIN `fuel_tags` ON `fuel_tags`.`id` = `fuel_relationships`.`foreign_key` WHERE `n`.`id` =reindex GROUP BY `news`.`id` ORDER BY `publish_date` desc
Filename: C:\wamp\www\zdlaw_fuel\fuel\codeigniter\database\DB_driver.php
Line Number: 331
$config['search']['index_modules'] = TRUE;
Comments