My sql nested query is something like this:-
$this->db->where_in('order.order_id', "SELECT `booking_id` FROM `booking` where `booking_id`=$id");
The problem is, the second parameter in where_in is considered as a string not as a query; since it comes under quotes, while printing last executed query through the function:
print_r($this->db->last_query());
so it returns nothing from the database.
How can I tolerate this problem can anybody please help ?