I have a problem with my code. I have two tables which are sales and expense. I can\'t JSON encode the data from the first table, it always returns the data from the expense tab