Please help with this query.
select count(id) FROM personals WHERE (descr like '%' || title like '%') && (TO_DAYS(CURRENT_DATE)-TO_DAYS(posted)<=60) && (age >= '18') && (age <= '99') limit 10, 10
My table contains 12 records that match the search, and the above query should return the last two records, since I have LIMIT 10,10.
This query:
select count(id) FROM personals WHERE (descr like '%' || title like '%') && (TO_DAYS(CURRENT_DATE)-TO_DAYS(posted)<=60) && (age >= '18') && (age <= '99') limit 0, 10
returns the first ten records without a problem, the first query however, gives me the error:
Warning: Unable to jump to row 0 on MySQL result index 2.
Any help is appreciated. Thanks.
Richie.