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 ',status, date_format(chat_date,'%b %d %Y, %H:%i') dt,status,file_name,autono,exp' at line 1