Anybody knows how to execute this using the famous Cakephp ORM-based 'find' query function?
$sql = "SELECT id FROM users WHERE id IN (SELECT user_id
FROM classification
WHERE class_name = '".$classname."')";
What I want to do is to get the id of the user ( from users table ) whenever a class_name is submitted.
As you can see, the user_id is the foreign key of the classifications table.