I have a query to select data from multiple tables. How do I write its equivalent code in codeigniter. See the query:
select *
from A inner join B on (A.ad_no=B.ad_no)
where B.ad_no in (select ad_no
from A
where $staff!='00:00' and $staff!='0:00')
order by B.ctype asc, B.cname asc,B.ad_no asc
I tried a query in codeigniter but its taking longer time to load the result.