Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by datetime_added DESC' at line 1---SELECT *, DATE_FORMAT(datetime_added,'%M, %d %Y') as date_added FROM features WHERE category_id= order by datetime_added DESC