I'm trying to make this query
SELECT * FROM district
WHERE id = ANY (SELECT districtId FROM address
WHERE id = ANY (SELECT addressId FROM schedule
WHERE workshopId = '1'))
My real problem is inserting the ANY
statement.
Does anyone know how to apply ANY
or ALL
to the query in Zend Framework 2?
Why don't you use join tables?
regards