Unknown column 'badajoz' 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 '%325%' or l.localidad like '%325%') group by i.PKimprenta order by badajoz limit 0,16