mysql_query() cannot be used for statements that contain binary data; you must use mysql_real_ query() ...
dev.mysql.com