I'm putting the following code to make a query:
SELECT * FROM tabela ORDER BY coluna WHERE ROWNUM = 5
However, when I put this in my PHP, the following message appears:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ROWNUM = 2' at line 1