string(87) "SELECT vid,created FROM movie WHERE created = '2018-09-19' ORDER BY created DESC DESC 6" Invalid query: 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 6' at line 1