Replace while loops for fetch_all(). This requires php5-mysqlnd. See
http://blog.ahughes.org/?p=602
Tons of ID vs Nombre fixes in window dialogs
More ID/Nombre fixes