I've gone through many links already but none could solve my problem. So please don't say that it shows less effort though I've worked on MySql before but never came across this situation where I need to use sub-query. So, here's my doubt..
"SELECT * FROM klms as Klm WHERE gcil_id = (SELECT id FROM gcils WHERE genre = 'Clothes')"
Obviously I've more than >1 rows where genre = 'Clothes' so it'll return >1 rows.. but then it shows this error
Error: SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row
btw I'm using cakephp for my app & I find it easier to use SQL queries.