Is there another way to do this? I would rather avoid writing the table name in every where() clause where this occurs
Cheers
EDIT
This outputed query is; (the table prefix is 'cl')
Quote:SELECT `cl_products`.*, `cl_categories`.`name` AS category_name FROM (`cl_products`) LEFT JOIN `cl_categories_products` as cl_categories_products ON `cl_products`.`id` = `cl_categories_products`.`product_id` LEFT JOIN `cl_categories` as cl_categories ON `cl_categories`.`id` = `cl_categories_products`.`category_id` WHERE `enabled` = '1' AND `cl_categories`.`id` = '1'