mysql_send_custom_error returns write operation

mysql_send_custom_error returns write operation