There was an SQL error. The error message is:
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 'desc' at line 1

The SQL Query that failed is: select * from slider where active=1 and sliderdetails='Home' order by desc