Mysql Fetch All Rows Into Array Definition Math