Unknown column 'guia' in 'order clause'
SELECT i.PKimprenta, i.imprenta, l.localidad FROM imprentas i INNER JOIN localidades l ON i.FKlocalidad = l.PKlocalidad WHERE 1 and (i.imprenta like '%2899%' or l.localidad like '%2899%') group by i.PKimprenta order by guia limit 0,16