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 'ERROR: SELECT *, DATE_FORMAT(dt,'%d/%m/%Y %H:%i:%s') as dt FROM orders WHERE use' at line 1:
ERROR: SELECT *, DATE_FORMAT(dt,'%d/%m/%Y %H:%i:%s') as dt FROM orders WHERE user_id=UNKNOWN_PLACEHOLDER_0 ORDER BY dt DESC