Query: SELECT `Detail`.`id`, `Detail`.`reference_id`, `Detail`.`order`, `Detail`.`detail`, `Reference`.`id`, `Reference`.`ref_nr`, `Reference`.`active` FROM `details` AS `Detail` LEFT JOIN `references` AS `Reference` ON (`Detail`.`reference_id` = `Reference`.`id`) WHERE reference_id = ORDER BY `order` ASC
Warning: SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY `order` ASC' at line 1 in /home/vellekoop/domains/vellekoop.com/public_html/cake/libs/model/datasources/dbo_source.php on line 440