account field - please add more depending on how many accounts you have 'accountName2,accountName3,4,5on how many accounts you have 'credits2,credits3,4,5...'accountname4 = $('#accountName4').text();
var credi
= 4 and credits_history.amount > 0 and credits_history.order_id IS NULL and credits_history.credits_typewhere credits_history.user_id = users.id and credits_history.type = 4 and credits_history.amount > 0| user_id