Notice (8): Undefined variable: theme [APP/app_controller.php, line 34]
Warning (512): 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 'AND application_id=' at line 1 [APP/cake/cake/libs/model/datasources/dbo_source.php, line 684]

Query: SELECT * FROM keyvaluepairs AS Keyvaluepair WHERE theme= AND application_id=

test