Bin will be removed on June 1, 2014 in favor of http://gist.github.com. Please save all your pastes before then. So long, and thanks for all the fish!×
1
2
3
4
5
6
7
8
9
10
Changed code to use cake conventions and get this error:
 
                        $this->Experiment->ExperimentMaterial->save($new_material);
$material_id = $this->Experiment->ExperimentMaterial->lastInsertId();
 
 
Query: lastinsertid
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 'lastinsertid' at line 1 in /stuff/cake/libs/model/datasources/dbo_source.php on line 440