Optimizacion de QUERY
Merge branch 'master' of https://github.com/lueimg/historico