I have a simple query which I can't for the life of me figure out.
I have a table (simplified) "messages" with columns "thread_id" and "messages"
I also have a list of threads I need 10 results from each.
$list = "1,2,3,4";
I would do $db->select()->from("messages")->where("thread_id IN ('?')",$list)->limit(10);
but that limits only 10 out of total, how would I do 10 out of each thread_id in ZF 1.11 query method?