SELECT SQL_CALC_FOUND_ROWS p.id_programa, p.nombre_programa from programas_versiones as v, programas as p WHERE (p.id_programa=v.id_programa and v.driver='0' and p.nombre_programa like '%%') group by p.id_programa order by p.nombre_programa LIMIT 80,20