Fuel\Core\Database_Exception [ 1054 ]: Unknown column '1' in 'on clause'. The end of the SQL is shown below, which looks like it is using the $_many_many relationship clauses I have setup (http://scrp.at/aIN), but is incorrectly escaping the value.
FROM `suppliers` AS `t0` LEFT JOIN `suppliers_product_types` AS `t1_through` ON (`t0`.`id` = `t1_through`.`supplier_id`) LEFT JOIN `product_types` AS `t1` ON (`t1_through`.`product_type_id` = `t1`.`id` AND `t1`.`status` = `1` AND `t1`.`deleted` = `0`) WHERE `t0`.`deleted` = 0 AND `t1`.`id` IN (4) AND `t1`.`deleted` = 0 ]
as_object('\Model\Supplier') = Exception [ Error ]: Could not execute Model\Supplier::__construct()
as_object('\Supplier') = Fatal error: Class '\Supplier' not found in /Users/trovster/Sites/splash/supplier/trunk/fuel/core/classes/database/mysqli/result.php on line 67
as_object('Model_Supplier') = ErrorException [ Compile Error ]: Cannot redeclare class Model\Supplier
It looks like you're new here. If you want to get involved, click one of these buttons!