pleasedontbelong/cakephp2.x-filter-search-example — pull request #1 by Anti-Fun (2013-12-27 04:48:32+00:00)
Title: Update MoviesController.php

In more complex queries the lack of specification causes a Integrity constraint violation: 1052 in your database. This is because the Where clause becomes ambiguous. Specifying 'Movie.'[$name] ensures that the constructed SQL statement is more specific so that in complex statements the ambiguity issue is addressed. (In my project, my equivalent of Movies was BTMHM)