I get a similar error when I try to create an Iterations:

SQL ERROR:
SELECT id, name FROM stories WHERE (iteration_id = "" AND project_id = ) GROUP BY (stories.id)
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 ') GROUP BY (stories.id)' at line 1

Fatal error: Call to a member function Fields() on a non-object in D:\xampp\htdocs\XPWeb\XPWeb\Controler\Planning_controler.inc.php on line 1215