error on add effort for a developer

Description

Error 20070418091349 ERROR: db/db.inc.php : 39 Database exception. Please read <a href=http://streber.pixtur.de/index.php?go=taskView&tsk=1272'> next steps on database errors.</a>
Error 20070418091349 db/db.inc.php : 251 -> MysqlException::__construct("Querry=SELECT DISTINCT i., e.")
Error 20070418091349 db/class_effort.inc.php : 319 -> DB_MysqlStatement::execute("", int1)
Error 20070418091349 pages/project_more.inc.php :1576 -> Effort::getAll([2])
Error 20070418091349 std/class_pagehandler.inc.php : 719 -> ProjViewEfforts()
Error 20070418091349 index.php : 212 -> PageHandler::show("projViewEfforts")
Error 20070418091349
Error 20070418091349 Variables in __construct():
Error 20070418091349 message = Querry=SELECT DISTINCT i., e.* from item i, effort e, project p, projectperson upp^M
Error 20070418091349 WHERE^M
Error 20070418091349 i.type = '8'^M
Error 20070418091349 AND i.project=2^M
Error 20070418091349 AND upp.person = 5^M
Error 20070418091349 AND upp.project=2^M
Error 20070418091349 ^M
Error 20070418091349 AND i.state=1^M
Error 20070418091349 AND ( i.pub_level >= upp.level_view^M
Error 20070418091349 OR^M
Error 20070418091349 i.created_by = 5^M
Error 20070418091349 )^M
Error 20070418091349 AND i.project = p.id^M
Error 20070418091349 ^M
Error 20070418091349 AND i.id = e.id^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349 ^M
Error 20070418091349
Error 20070418091349
Error 20070418091349 code = NULL
Error 20070418091349 sql_obj = OBJECT
Error 20070418091349 mysql_error = Can't create/write to file '/tmp/#sql_2b0f_0.MYI' (Errcode: 13)
Error 20070418091349 v0.0795, projViewEfforts, from 127.0.0.1, uri:/streber/index.php?go=projViewEfforts&prj=2
Error 20070418091349

php: 5.1.6 mysql: 5.0.27 - fedora 6