Hello I am trying to where and order by together in mysql
this is my SQL QUERY
SELECT * FROM `lead_data` WHERE qa_status ='Pending' OR ORDER BY id DESC
Error :
MySQL said: Documentation
#1064 - 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 'ORDER BY id DESC LIMIT 0, 25' at line 1
Should be like:
SELECT * FROM `lead_data` WHERE qa_status ='Pending' ORDER BY id DESC
2.1m questions
2.1m answers
60 comments
57.0k users