swilson@swilson-mbp-vdebian:~/perl/test$ ./test.pl DBIx::Class::ResultSet::find_or_create(): DBI Exception: DBD::mysql::st execute failed: 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 'MORE_DAT 'more blah' AND me.data SOME_DAT 'blah' ) AND me.pk IS NULL ) )' at line 1 [for Statement "SELECT me.pk, me.data_fk FROM main me WHERE ( ( ( me.data MORE_DAT ? AND me.data SOME_DAT ? ) AND me.pk IS NULL ) )" with ParamValues: 0='more blah', 1='blah'] at ./test.pl line 16