Hello, I'm trying to see the previous record in relation to the current record. I am using the following code
SELECT * FROM Tabela WHERE compoid <"Contraband" ORDER BY compoid DESC LIMIT 1;
But it is returning the blank table What's wrong? How can I search the previous record using select in mysql