Mexico - Foreign Trade customs reports and bulk databases

Error en la consulta de conteo alternativo de registros: SELECT empresa,id FROM mexico WHERE estado LIKE '%' AND status <> 'D' ORDER BY id DESC. Mysql dijo: