A have two tables which I want to join table to get results, please look at this SQL working fine.
function getTotalCheque_per_day($date) { $this->db-&