I was using ASP+Access and now I'm trying to convert my code to PHP+MySQL. The one problem I couldn't solve is using limit in subqueries. They doesn't work my Mysql Version 4.1 and I don't think even Mysql 5 supports it. I searched forums and the net, I've found a few workarounds on this one but they all are using joins and I don't know about it yet so I couldn't understand them 🙁. Can anyone please help me to convert this sql to Mysql version? I'd be very happy if you could help me.
Here's the code:
select id
from press_scanner
where id not in
(select id from press_scanner
order by date desc,id desc limit intLimit1)
and id in
(select id from press_scanner
order by date desc,id desc limit intLimit2)
order by tarih desc,id desc
Thank you!