nativo 0 Denunciar post Postado Junho 7, 2007 Obrigado Amigos, já consegui resolver!![/b] http://forum.imasters.com.br/public/style_emoticons/default/joia.gif Alguem poderia me ajudar a encontrar este erro por favor! 1054 - Unknown column 'p.products_id' in 'on clause' select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%note%' or p.products_model like '%note%' or m.manufacturers_name like '%note%') ) Estrutura da Tabela --------------------------------------------------------------------------------------------- CREATE TABLE `products` ( `products_id` int(11) NOT NULL auto_increment, `products_quantity` int(4) NOT NULL default '0', `products_model` varchar(12) default NULL, `products_image` varchar(64) default NULL, `products_price` decimal(15,4) NOT NULL default '0.0000', `products_date_added` datetime NOT NULL default '0000-00-00 00:00:00', `products_last_modified` datetime default NULL, `products_date_available` datetime default NULL, `products_weight` decimal(5,2) NOT NULL default '0.00', `products_status` tinyint(1) NOT NULL default '0', `products_tax_class_id` int(11) NOT NULL default '0', `manufacturers_id` int(11) default NULL, `products_ordered` int(11) NOT NULL default '0', PRIMARY KEY (`products_id`), KEY `idx_products_date_added` (`products_date_added`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=99; Obrigado. Compartilhar este post Link para o post Compartilhar em outros sites
nativo 0 Denunciar post Postado Junho 7, 2007 Obrigado Amigo tmferreira pela ajuda. Consegui resolver! Obrigado http://forum.imasters.com.br/public/style_emoticons/default/joia.gif Compartilhar este post Link para o post Compartilhar em outros sites