Line 149 is missing the "ref_no" data which makes the call one param short.
was ->
$sql['data']['work_order'] = "INSERT INTO work_orders VALUES (1, 'This is the very first work order', 0, 'manager', '', '', 'This is the very first work order.', NULL, NULL, 0, '2003-08-25', NULL, NULL, NULL, NULL, NULL, NULL, 'Pending Approval', '', 20030825163153);";
should be ->
$sql['data']['work_order'] = "INSERT INTO work_orders VALUES (1, 'someRefNum', 'This is the very first work order', 0, 'manager', '', '', 'This is the very first work order.', NULL, NULL, 0, '2003-08-25', NULL, NULL, NULL, NULL, NULL, NULL, 'Pending Approval', '', 20030825163153);";