Zend Framework - Issue with delete from database code
===

In my Application_Model_DbTable_User, i have the following function:

    	public function deleteUser($username)
	    {
	    $this->delete('username = ' . (string) $username);
	    }


This function is being called from my AdminController, with this three lines of code.

    $uname = $this->getRequest()->getParam('username');
    $user = new Application_Model_DbTable_User();
    $user->deleteUser($uname);

This error however, turns up.

> Column not found: 1054 Unknown column 'test' in 'where clause'

With test being the user i am trying to delete.

This code is adapted from a previous code which deletes based on 'id', a INT field, which works perfectly fine. What am I doing wrong? I would be happy to give more detailed codes if needed. Thanks.