SELECT id from reparacoes WHERE id_reparacao
IN (select DISTINCT re.id_reparacao
FROM reparacoes re
WHERE(edit_user="loja cascais" AND estado="Fechada" AND edit_data = (SELECT edit_data, id FROM reparacoes WHERE id_reparacao=re.id_reparacao ORDER BY edit_data DESC LIMIT 1)))
在使用 phpmyadmin 查询时,它给了我这个错误:
#1241 - Operand should contain 1 column(s)