I have the following query:
SELECT u.amount_limit, SUM( t.amount ) AS approved FROM table_transactions AS t, table_users AS u WHERE t.uid = u.id AND t.statu